// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.108404904603958,0.477955073118210,0.004689660854638,0.137206062674522);
res += vec4(0.028537739068270,-0.000876694510225,-0.015448769554496,-0.050403282046318) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.040424205362797,0.023015322163701,-0.060756824910641,0.199085354804993) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.228650420904160,0.021847551688552,0.061590924859047,-0.114107325673103) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.269290566444397,-0.032902795821428,-0.011253593489528,-0.041490670293570) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.087506249547005,0.032994329929352,-0.149915903806686,-0.014135930687189) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.011488190852106,-0.046597789973021,-0.001337620429695,0.069562055170536) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.048044830560684,-0.086402364075184,0.103927791118622,-0.195600673556328) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.203793272376060,-0.054733004420996,-0.090691238641739,-0.027008902281523) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.010742205195129,0.024923700839281,-0.050164509564638,0.165195107460022) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.000958223710768,0.032840333878994,-0.109591670334339,0.059693567454815) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.066776506602764,-0.014485525898635,0.034625284373760,-0.007414864841849) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.084909804165363,-0.056878522038460,-0.051392883062363,-1.172702908515930) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.328876346349716,-0.698092639446259,-0.011118728667498,-0.273847043514252) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.370497643947601,0.069257184863091,0.774299681186676,0.370225250720978) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.196585193276405,-0.075061336159706,-0.451989680528641,-0.067496299743652) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.099388867616653,0.006716137751937,-0.049140583723783,-0.029424170032144) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.092013135552406,-0.090623229742050,0.117026671767235,-0.037164971232414) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.517723679542542,-0.475390940904617,-0.158650413155556,0.142200604081154) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.013317368924618,0.083915792405605,-0.196231469511986,0.172454908490181) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.041584331542253,0.007993943057954,-0.650933206081390,0.041820410639048) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.009736532345414,0.006057550664991,-0.020552558824420,0.047068912535906) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.054265633225441,-0.046218402683735,0.012768508866429,0.137938752770424) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.235230550169945,-0.022708257660270,-0.069090455770493,0.007217227481306) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.032692223787308,0.009165678173304,0.176333576440811,-0.116318523883820) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.041736014187336,-0.054154608398676,-0.615258693695068,0.002577916253358) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.046757139265537,0.330450654029846,0.012786577455699,-0.022161925211549) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.051985204219818,0.035427894443274,0.202429026365280,-0.031759828329086);
res += vec4(-0.008758654817939,-0.029779387637973,-0.011177957989275,0.039854135364294) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.048988085240126,0.028751408681273,-0.025876231491566,0.109037153422832) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.126961618661880,-0.009600901044905,0.151593312621117,0.029828483238816) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.010718083009124,0.032194860279560,-0.064242132008076,-0.092519037425518) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.002437747782096,-0.003565720282495,0.045348808169365,-0.045834936201572) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.059975508600473,-0.002990823006257,-0.094845347106457,0.085010781884193) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.089848279953003,0.011499061249197,0.096451275050640,-0.155289992690086) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.807273566722870,-0.042030811309814,0.097139395773411,-0.210160493850708) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.018033828586340,-0.004632929340005,-0.084459461271763,0.141294151544571) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.068541303277016,-0.023892318829894,-0.070075824856758,0.017109429463744) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.107538707554340,-0.086467996239662,0.103300243616104,0.164720430970192) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.002061181934550,0.060633108019829,0.219421237707138,-0.108641050755978) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.869508624076843,0.337004393339157,-0.383681386709213,0.026052914559841) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.008105502463877,0.002620165236294,-0.186412602663040,-0.048791531473398) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.065897375345230,0.021886467933655,0.034631304442883,-0.024763178080320) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.047446601092815,0.138107866048813,0.070306673645973,-0.357920557260513) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.043835863471031,0.271180093288422,-0.112303815782070,-0.203987404704094) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.010411311872303,0.099068149924278,-0.290766358375549,0.280387967824936) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.010632735677063,-0.312014192342758,-0.547629952430725,0.184022918343544) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.002936660079286,0.082001224160194,-0.063523270189762,0.066971026360989) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.004700595978647,0.050371292978525,-0.045417811721563,0.065189078450203) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.011877755634487,-0.336569011211395,0.076550789177418,0.354028850793839) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.014152563177049,-0.739362239837646,-0.024539401754737,-0.076666601002216) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.029911728575826,0.265230059623718,-0.047208227217197,-0.224189981818199) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.007342972327024,-0.058988150209188,-0.053603652864695,0.008196434006095) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.126498147845268,-0.104544408619404,0.342436224222183,0.300994783639908) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.195138186216354,-0.248359113931656,0.032823555171490,0.054609559476376);
res += vec4(0.013457102701068,-0.007412818260491,0.068462476134300,0.007755197584629) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.063164025545120,0.061297014355659,-0.258996456861496,-0.037205502390862) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.089565798640251,-0.074786446988583,0.186622455716133,-0.039979282766581) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.008133225142956,0.034533806145191,-0.058460835367441,0.071001753211021) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.025160104036331,-0.043389938771725,0.104405447840691,-0.045597746968269) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.006801056209952,-0.040917810052633,0.021701252087951,-0.131520524621010) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.020376075059175,-0.154524981975555,-0.093208812177181,0.204458430409431) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-1.322673797607422,0.381203770637512,0.164214640855789,0.003786723827943) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.229390904307365,0.063196480274200,0.114929139614105,-0.080417074263096) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.009582598693669,-0.022068347781897,-0.144154638051987,0.025330325588584) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.003349344711751,0.034866392612457,0.147334039211273,0.158015713095665) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.125000029802322,-0.025860799476504,-0.045994389802217,0.472406804561615) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.243390083312988,0.573319852352142,-0.278780400753021,-0.717812836170197) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.323122322559357,0.144479334354401,-0.174631729722023,0.028230717405677) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.074458450078964,0.115487463772297,-0.030967960134149,0.057753596454859) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.045643072575331,0.004027260467410,-0.186659589409828,-0.043332647532225) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.068544588983059,-0.187559917569160,0.287873685359955,0.302925467491150) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.026035143062472,-0.366887122392654,-0.081046901643276,-0.177234649658203) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.099792614579201,-0.199646949768066,0.193681880831718,-0.001366961980239) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.078400976955891,0.029912918806076,0.093810908496380,-0.054711792618036) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.044653981924057,0.024193113669753,-0.051761984825134,0.012686313129961) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.052113737910986,-0.083504274487495,0.113506920635700,0.010441224090755) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.018920425325632,0.044155616313219,0.082759022712708,-0.064815603196621) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.038549959659576,-0.060526210814714,-0.113578610122204,0.020336631685495) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.006804746109992,0.056477170437574,-0.090254522860050,0.009475708939135) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.016346702352166,-0.025327065959573,0.717172980308533,0.515181243419647) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(0.060967467725277,0.179487466812134,-0.750519096851349,0.050408914685249);
res += vec4(-0.144936010241508,-0.054345987737179,-0.009567921981215,-0.013893677853048) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.212688773870468,-0.285556524991989,0.037901259958744,0.198284804821014) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.017259718850255,-0.276191115379333,-0.067062646150589,-0.126859143376350) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.035942904651165,-0.032570354640484,-0.017550934106112,-0.080129988491535) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.004850976169109,0.069130472838879,0.010716299526393,0.012711256742477) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.203339308500290,-0.151406005024910,0.003169325180352,-0.009994892403483) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.291960656642914,-0.349671870470047,-0.081028223037720,-0.199080467224121) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.065267398953438,-0.421512782573700,0.252564519643784,0.143880158662796) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.125712096691132,-0.262364774942398,-0.120852150022984,-0.072113156318665) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.058036237955093,0.058760747313499,-0.026104170829058,0.049772828817368) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.302268654108047,0.039405144751072,0.052992492914200,0.098426498472691) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.585300326347351,-0.032593287527561,-0.050398789346218,-0.126324132084846) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.479170024394989,-0.239000812172890,0.795520484447479,-0.566050291061401) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.020465584471822,-0.108292929828167,0.332175552845001,-0.043498575687408) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.176578029990196,0.011529098264873,-0.028763566166162,-0.128797680139542) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.178233206272125,0.010461930185556,-0.025336263701320,0.038670111447573) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.438843727111816,-0.128897309303284,-0.013989193364978,0.430003851652145) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.213048025965691,0.222930639982224,0.098370522260666,0.143156960606575) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.127757921814919,0.060190100222826,-0.068460330367088,0.241160422563553) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.028393775224686,-0.018380250781775,-0.009185234084725,-0.036527708172798) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.094266645610332,0.020472051575780,0.007939856499434,0.016707234084606) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.265623122453690,-0.038041055202484,-0.005812387913465,-0.076378770172596) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.056060366332531,0.047438077628613,0.052474882453680,0.089850023388863) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.011806328780949,0.000952504575253,-0.088191665709019,-0.094794258475304) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.027708897367120,-0.022352697327733,0.041770897805691,0.063843637704849) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.005201540421695,0.156910628080368,-0.009667621925473,0.663275897502899) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(0.069894038140774,0.021497419103980,0.030141552910209,-0.349807769060135);
res += vec4(-0.041158217936754,-0.034129448235035,0.033413060009480,-0.006941971369088) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.058107871562243,-0.164983093738556,-0.001429878640920,0.065623737871647) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.092269122600555,0.047563925385475,0.044630795717239,0.004760372918099) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.026564849540591,0.064608752727509,-0.133537009358406,-0.049518048763275) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.040540091693401,0.015265138819814,0.043212182819843,-0.001964653842151) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.012093376368284,-0.092804744839668,-0.002735322806984,0.024612262845039) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.070959448814392,0.233692303299904,-0.286164194345474,0.162685722112656) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.335712105035782,-0.217174723744392,0.280539900064468,0.337924629449844) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.287428796291351,0.000751035287976,-0.005652596708387,-0.047997388988733) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.075804695487022,0.064806818962097,0.110588550567627,-0.082430414855480) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.050623379647732,0.080090038478374,0.067860282957554,-0.004194559995085) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.215086802840233,-0.218783512711525,0.629461228847504,0.188843682408333) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.865792155265808,0.216265276074409,-0.264403283596039,0.235790267586708) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.397638320922852,0.370609879493713,-0.296854406595230,-0.513325333595276) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.142239108681679,-0.260082751512527,-0.186995476484299,0.114859141409397) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.028643054887652,-0.026792781427503,-0.086639970541000,-0.076099120080471) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.265377879142761,0.073437690734863,-0.227539598941803,0.163590535521507) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.768364489078522,-0.084818214178085,0.119120672345161,0.005674840416759) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.198254853487015,-0.163622036576271,0.283641636371613,0.016918618232012) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.054224435240030,0.045715779066086,-0.034317661076784,-0.036266636103392) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.034719631075859,-0.004540557973087,-0.017359999939799,0.065744869410992) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.024733979254961,-0.001513784518465,0.060291092842817,0.053117930889130) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.122831024229527,-0.142040744423866,-0.298622637987137,-0.069426618516445) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.036257494240999,0.155341282486916,0.181637346744537,-0.053488500416279) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.035968642681837,0.006228598300368,-0.034401081502438,-0.022529758512974) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.815406084060669,0.625073671340942,0.839896440505981,-0.019146095961332) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(-0.027252444997430,-0.075752407312393,0.211621135473251,0.005585310980678);
res += vec4(-0.001641273382120,0.071709662675858,-0.020170526579022,-0.085646472871304) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.047118753194809,0.111773043870926,0.016932303085923,-0.095073692500591) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.213794291019440,0.095777362585068,0.098756089806557,0.021132582798600) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.264142453670502,-0.178319409489632,0.012023011222482,-0.005486946087331) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.075352512300014,0.023476514965296,-0.014130967669189,0.009925095364451) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.049410842359066,-0.219312831759453,-0.016806101426482,0.078906349837780) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.320718258619308,0.058181717991829,0.013472370803356,0.181675076484680) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.562028408050537,-0.483883053064346,-0.090154461562634,0.106963388621807) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.206330910325050,0.085696443915367,-0.010290637612343,-0.309082657098770) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.129992559552193,0.025131264701486,0.014454273506999,0.007865284569561) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.125038549304008,0.105497166514397,-0.019337320700288,0.148362159729004) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.222841635346413,0.036038383841515,0.115201488137245,-0.555072009563446) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.785162329673767,0.641616225242615,0.186306014657021,0.841723084449768) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.410421520471573,-0.007551876362413,0.196541622281075,-0.443075865507126) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.021364202722907,-0.144136577844620,-0.036224324256182,0.260013431310654) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.006115453783423,-0.000612308504060,0.034475341439247,-0.077384047210217) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.447822302579880,-0.009194505400956,-0.189495623111725,0.134424790740013) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.286625444889069,-0.163866713643074,-1.822406291961670,-0.028141297399998) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.116958104074001,0.192910894751549,0.276597887277603,0.198393598198891) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.044119406491518,-0.185302421450615,-0.077971555292606,-0.098441161215305) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.137927249073982,0.040328588336706,0.000580768624786,-0.029964424669743) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.163603037595749,-0.032301828265190,0.036453492939472,-0.026064462959766) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.050000384449959,0.246660381555557,-0.108330070972443,-0.242881938815117) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.106805525720119,-0.133322015404701,-0.006991456262767,0.004765756893903) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.028723964467645,-0.042654562741518,0.006203358527273,0.021365813910961) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.169054344296455,0.932966709136963,-0.011785600334406,0.980819761753082) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(0.069048188626766,-0.030090119689703,-0.081916041672230,0.054651934653521);
res += mat4(0.015706066042185,-0.045345023274422,-0.013578194193542,-0.071515157818794,0.023571748286486,0.258376389741898,0.063762016594410,0.057240057736635,0.441102564334869,0.014865392819047,-0.102342389523983,0.007601082324982,0.032083418220282,-0.082802258431911,-0.205346390604973,0.001844754093327) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.052451711148024,-0.022799491882324,0.117588818073273,0.047985918819904,-0.086672358214855,-0.084988802671432,-0.024801861494780,-0.067797243595123,0.013580201193690,0.128881722688675,0.017718512564898,-0.035424925386906,0.032436471432447,-0.034977644681931,-0.225525468587875,-0.106059253215790) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.049506280571222,-0.018576981499791,-0.034315738826990,-0.063059613108635,0.072656817734241,-0.082765631377697,-0.000739469192922,-0.027446771040559,0.062524802982807,-0.023814592510462,0.001361098606139,-0.004920111503452,-0.131737381219864,-0.062713049352169,0.034407824277878,0.005882235243917) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.018238997086883,-0.127412348985672,0.090249404311180,0.101760752499104,-0.059870924800634,0.274747103452682,0.191750675439835,0.120975866913795,0.193730235099792,0.040884237736464,0.070429831743240,-0.181916892528534,0.064835093915462,0.159998059272766,-0.176301300525665,-0.117405191063881) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.069406941533089,0.016806382685900,0.317058295011520,0.015248033218086,0.201430827379227,-0.043776981532574,-0.206912577152252,0.043936476111412,-0.198563799262047,0.182191282510757,0.054734289646149,-0.027432702481747,-0.108537122607231,0.230184569954872,-0.017696326598525,0.304885208606720) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.061154179275036,0.106468990445137,-0.169632345438004,0.013507684692740,-0.033393368124962,-0.103641033172607,0.069215342402458,-0.051812358200550,0.202301993966103,0.013414608314633,-0.013547421433032,0.023118535056710,0.135947003960609,-0.081255860626698,0.017467873170972,-0.054919119924307) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.029671695083380,-0.026487162336707,-0.121273465454578,-0.218035116791725,-0.030090162530541,-0.284836441278458,0.138155579566956,-0.134242907166481,-0.051358208060265,-0.038861826062202,-0.070507951080799,0.149646908044815,0.075947977602482,-0.046806428581476,-0.147960171103477,0.096084825694561) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.023777820169926,0.165174543857574,-0.210562542080879,0.020880237221718,0.004677627701312,0.225193277001381,-0.176124244928360,-0.033502873033285,-0.145151689648628,-0.016884922981262,-0.022884022444487,-0.038400899618864,-0.062940947711468,-0.088325329124928,0.160457238554955,-0.023951830342412) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.068988040089607,0.002517913002521,-0.096882000565529,-0.014103516004980,-0.011845674365759,0.040962252765894,0.160165339708328,0.020776333287358,0.034932691603899,-0.015121219679713,-0.071546003222466,-0.006079734303057,0.133082211017609,0.019467771053314,0.268023431301117,0.148476496338844) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.118376687169075,0.270536005496979,-0.072278968989849,-0.047221157699823,-0.023479504510760,-0.206804201006889,-0.273695558309555,-0.095674604177475,0.058667555451393,-0.252498388290405,-0.089654564857483,0.301140278577805,-0.273686796426773,0.030877569690347,-0.179037347435951,0.110026717185974) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.125207498669624,0.013438223861158,-0.208883509039879,0.084798224270344,-0.034967999905348,0.179683312773705,0.338073909282684,0.171541407704353,-0.023342262953520,-0.030531959608197,0.101577185094357,0.076715603470802,-0.070650450885296,-0.095650404691696,-0.067820020020008,0.059359304606915) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.100470550358295,0.037847246974707,-0.023058166727424,-0.047343745827675,-0.018952358514071,0.056285254657269,-0.306667208671570,-0.038085937500000,-0.101552963256836,-0.062035772949457,0.121848642826080,0.055588144809008,0.146542429924011,-0.006549702957273,-0.010489725507796,0.016407413408160) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.145699545741081,0.271665692329407,-0.071827009320259,0.216217651963234,0.034406587481499,-0.095746405422688,-0.084439612925053,0.193529456853867,0.155349954962730,-0.010809367522597,-0.283496707677841,-0.222476392984390,-0.045240573585033,-0.190093025565147,-0.017463013529778,0.138199120759964) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.318543970584869,-0.082368358969688,-0.232111543416977,0.238560944795609,-0.006110276561230,-0.116706371307373,0.123868286609650,0.086670145392418,-0.120175190269947,-0.176580190658569,-0.008929809555411,0.001977752661332,0.103505216538906,0.059336379170418,0.266739964485168,-0.087173819541931) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.081152588129044,-0.102135285735130,-0.119691506028175,0.152971044182777,0.054117560386658,-0.071140430867672,-0.246845141053200,-0.000041066938138,-0.141100496053696,0.038613013923168,0.005596815608442,-0.006430334877223,0.029958954080939,-0.074475243687630,-0.188033565878868,-0.071910679340363) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.046811860054731,-0.314405709505081,0.044192351400852,-0.953488469123840,-0.002536449581385,-0.089276373386383,0.079268611967564,-0.053395256400108,0.038078948855400,-0.209305927157402,-0.172689169645309,-0.370621979236603,0.064636223018169,0.064770311117172,0.073049560189247,-0.153504475951195) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.129968449473381,0.056307818740606,-0.322283118963242,-0.378075838088989,-0.030758043751121,0.018168404698372,0.008917842060328,0.050070777535439,0.003541719168425,-0.002532288199291,-0.090385459363461,-0.108413472771645,0.029689209535718,0.086791381239891,-0.117911115288734,-0.133865490555763) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.252835929393768,-0.043605651706457,-0.087247289717197,0.166719213128090,-0.027564430609345,0.063230060040951,-0.039801578968763,0.006922590546310,-0.112322300672531,-0.046474844217300,0.087035179138184,-0.036077868193388,-0.139929696917534,-0.050969194620848,0.073581583797932,0.046542439609766) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.000243068221607,-0.026854695752263,0.011226493865252,-0.030443424358964,-0.050446666777134,0.001709505217150,-0.184733048081398,-0.050871923565865,-0.029638279229403,0.081813007593155,0.036899682134390,0.048055209219456,-0.068314976990223,0.178293913602829,0.028497055172920,-0.010614151135087) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.095801673829556,-0.014730833470821,-0.130274549126625,-0.047575704753399,-0.049723312258720,-0.002004876267165,-0.250007987022400,-0.037803154438734,-0.029458254575729,-0.062081065028906,0.000013335993572,-0.149001210927963,0.111096180975437,-0.199429005384445,-0.056482158601284,-0.168124869465828) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.048888985067606,0.018127296119928,-0.037680812180042,0.001005231169984,0.161678567528725,0.009080999530852,-0.068595610558987,-0.003332789521664,0.001486601075158,-0.024643788114190,-0.020287944003940,0.015575531870127,-0.240965500473976,-0.102073937654495,-0.004534641280770,0.065331861376762) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.088382840156555,0.228176757693291,0.103882871568203,-0.085676699876785,0.030410455539823,-0.068963289260864,0.002928311936557,0.195254996418953,-0.066438630223274,-0.025975447148085,0.179693087935448,0.085429444909096,-0.119513094425201,0.217597112059593,0.002773715648800,0.100906081497669) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.166690826416016,-0.077878743410110,-0.170133575797081,-0.038770962506533,-0.000537225452717,-0.138257637619972,-0.030807463452220,0.183453217148781,0.011442135088146,-0.052037134766579,0.014385096728802,0.126438498497009,0.299797594547272,-0.326886922121048,0.080386810004711,0.161780834197998) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.022760719060898,-0.155009999871254,-0.282955467700958,-0.059339791536331,0.026554590091109,-0.012837092392147,-0.020624114200473,-0.042980998754501,0.086918517947197,-0.038102440536022,0.227141857147217,-0.117715671658516,-0.490985125303268,-0.013780591078103,0.170345470309258,-0.026955669745803) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.091695062816143,0.291858196258545,0.194533810019493,0.279662042856216,-0.085989415645599,-0.066166400909424,0.114505112171173,-0.194256916642189,-0.096005469560623,0.022249814122915,-0.121745765209198,-0.133625209331512,-0.013710458762944,-0.077790252864361,-0.071182355284691,0.037959899753332) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.154061600565910,-0.194142639636993,0.138247177004814,-0.074387431144714,0.077537365257740,-0.009358892217278,-0.226172506809235,-0.027444912120700,0.015486296266317,0.002370482543483,-0.158592119812965,-0.002745541045442,0.187519684433937,-0.195162758231163,-0.221711307764053,0.123558223247528) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.028224889189005,-0.092067539691925,0.125759646296501,0.004324445035309,0.029611233621836,0.017385596409440,0.041107401251793,0.048570003360510,0.069617532193661,0.048450678586960,-0.083535283803940,0.102803312242031,-0.027303433045745,0.056368287652731,0.178568094968796,-0.024718552827835) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.022563740611076,0.144483119249344,0.062662750482559,-0.137546852231026,-0.072990223765373,-0.057340756058693,0.042192962020636,0.014474905095994,0.079461827874184,-0.122046925127506,0.000543694768567,-0.125149458646774,0.036449212580919,0.131909340620041,-0.110893495380878,-0.038715340197086) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.072232961654663,0.028379511088133,-0.030412003397942,0.029108555987477,-0.071701258420944,0.184681177139282,-0.013920018449426,0.084805391728878,-0.193247154355049,-0.043136443942785,-0.163216456770897,-0.048944562673569,-0.117337919771671,-0.222097441554070,0.034406442195177,-0.055963020771742) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.009846875444055,0.005275465082377,-0.021438045427203,0.075119338929653,-0.020168405026197,-0.035892393440008,0.126403450965881,0.024892864748836,0.030138390138745,0.059612095355988,-0.213089793920517,-0.010322295129299,0.017114749178290,-0.072405621409416,-0.060607247054577,0.093252174556255) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.303177446126938,0.006168335676193,0.093987852334976,0.007393104489893,0.005223589949310,0.130990490317345,0.049281608313322,0.158188253641129,-0.151436597108841,-0.350541114807129,0.014962277375162,-0.249323755502701,-0.002234174404293,0.145296216011047,0.317685455083847,0.254091113805771) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.094419471919537,0.115532137453556,-0.036401461809874,-0.130271181464195,-0.005630552303046,0.226459011435509,0.049421280622482,0.104869648814201,-0.173516601324081,-0.103752210736275,-0.178541496396065,-0.093335367739201,0.093470446765423,-0.162980854511261,0.070192269980907,0.347113579511642) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.008571354672313,0.011628585867584,-0.030892740935087,0.020502582192421,0.082679048180580,-0.027418039739132,0.070258826017380,0.167628556489944,0.382307887077332,-0.010719045996666,0.050563227385283,-0.019471518695354,-0.108712054789066,-0.035980068147182,0.283134669065475,-0.073600254952908) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.067766085267067,0.083764120936394,0.133327692747116,0.213154450058937,0.090101256966591,0.235279724001884,0.006401651073247,-0.020627066493034,-0.158754184842110,0.282429069280624,0.203125506639481,0.539881765842438,0.142867371439934,-0.069966889917850,-0.102737620472908,-0.142476245760918) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.116777077317238,0.009902366437018,0.063667505979538,-0.073853306472301,0.100285343825817,0.203931748867035,-0.008893921039999,-0.029472794383764,-0.008639203384519,-0.021654052659869,0.006672400981188,0.053378239274025,-0.116197086870670,-0.167005911469460,-0.337417095899582,-0.031800802797079) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.004588171839714,0.002349103335291,-0.035252582281828,-0.031869217753410,0.050340298563242,0.093217477202415,0.136469274759293,0.083686403930187,0.358591526746750,0.161816924810410,-0.003333531320095,0.034214258193970,0.003861372359097,0.012169575318694,-0.041364237666130,-0.089293636381626) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.040885694324970,-0.134061008691788,-0.096373066306114,-0.166610777378082,0.043108720332384,-0.094916865229607,0.006606217473745,0.086719177663326,-0.015751756727695,-0.042163465172052,0.172523096203804,-0.097195036709309,-0.017506465315819,0.241983160376549,-0.058009721338749,-0.014593402855098) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.099735990166664,0.085411801934242,-0.076376304030418,0.069410569965839,-0.049009293317795,-0.127416148781776,-0.087240286171436,0.052910726517439,0.148063182830811,0.010263476520777,-0.226086303591728,0.025497516617179,0.083057373762131,0.027604604139924,-0.054544411599636,-0.008200932294130) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.196865260601044,0.030757466331124,0.116966210305691,0.040867470204830,-0.091619633138180,0.084277793765068,-0.199629440903664,-0.003789281705394,-0.096826992928982,0.086321890354156,-0.038596857339144,-0.013673729263246,-0.090020336210728,-0.034029815346003,-0.180109262466431,-0.050290945917368) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.125138044357300,0.234296306967735,-0.044865008443594,0.390552788972855,-0.009472405537963,0.027066599577665,-0.084984898567200,-0.131316229701042,-0.092600002884865,0.065786078572273,-0.073500946164131,0.166844680905342,-0.074829436838627,0.267960458993912,0.048722166568041,0.070185877382755) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.261010259389877,-0.108180686831474,0.410405635833740,-0.030462250113487,0.068413943052292,0.045009702444077,-0.197553008794785,-0.006362583488226,-0.016203735023737,-0.285335958003998,0.207546919584274,-0.301652997732162,0.098286524415016,-0.045340511947870,0.002391649410129,-0.062256086617708) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.298960179090500,-0.009448658674955,0.033770788460970,-0.129457190632820,-0.069585643708706,0.102406091988087,-0.084374710917473,-0.137628838419914,-0.174042135477066,-0.097875468432903,0.089876830577850,0.042385939508677,-0.081199742853642,0.063831001520157,-0.058615185320377,0.077401846647263) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.012791999615729,-0.296253323554993,0.131915897130966,-0.188785046339035,-0.004419197328389,-0.011888936161995,0.271679103374481,0.200042784214020,-0.040299106389284,-0.003347345860675,-0.100707486271858,-0.120274245738983,-0.003004497615620,0.175742745399475,0.035071678459644,0.006490574683994) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.030100326985121,0.101438522338867,-0.591661334037781,0.004887180402875,0.194558233022690,0.008579446934164,0.183195725083351,-0.186913117766380,0.152416855096817,0.164460092782974,-0.299618810415268,0.264676749706268,-0.033345218747854,-0.023722250014544,-0.157555550336838,0.066928483545780) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.022804884240031,0.011171660386026,0.144779607653618,0.013316725380719,0.018191229552031,0.057893134653568,-0.030279049649835,0.103664658963680,0.126706734299660,-0.088150061666965,0.377216488122940,-0.012533249333501,-0.084326863288879,-0.055714569985867,0.018284957855940,-0.021742869168520) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.003785876324400,-0.117536202073097,-0.025862850248814,-0.061136744916439,-0.054111454635859,-0.068840473890305,-0.109849929809570,-0.114503510296345,-0.007998644374311,0.427038073539734,0.249852865934372,0.220228061079979,-0.103090673685074,-0.209948480129242,-0.022160731256008,-0.046765763312578) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.099282756447792,-0.105897895991802,-0.069468453526497,-0.120502419769764,0.125387340784073,0.050073482096195,-0.009909454733133,0.096067801117897,-0.080396890640259,-0.288639038801193,-0.043110288679600,0.054151620715857,0.164146766066551,0.109391473233700,-0.269243001937866,-0.043183013796806) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.031421151012182,0.008665789850056,-0.124627679586411,0.031407479196787,-0.023932978510857,0.059896107763052,-0.019915083423257,-0.013647285290062,0.132877781987190,-0.177760452032089,0.236362427473068,0.029309138655663,-0.018411539494991,0.085308931767941,-0.056706078350544,-0.016612879931927) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.005607223138213,-0.051553968340158,0.019571769982576,0.111894950270653,-0.050179950892925,-0.292943209409714,-0.068068169057369,-0.240357100963593,-0.027107020840049,-0.153022140264511,0.586553275585175,-0.113643936812878,0.033627893775702,-0.362716317176819,0.130609288811684,-0.102877981960773) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.198418289422989,0.074160411953926,0.096241176128387,-0.301574617624283,-0.145270138978958,-0.022672301158309,-0.053260728716850,-0.090797297656536,0.119109459221363,0.093624673783779,-0.068354263901711,-0.256706714630127,-0.399143993854523,0.280892491340637,0.122355833649635,0.026286816224456) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.063398271799088,0.068445146083832,-0.279369384050369,-0.009020597673953,0.157262697815895,0.053909432142973,-0.038148839026690,0.025062775239348,-0.024746512994170,-0.009307207539678,0.263762086629868,-0.056334279477596,0.489801198244095,0.002886476926506,0.048458058387041,-0.073595255613327) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.032909005880356,-0.190051093697548,0.018429109826684,0.014767158776522,-0.071683056652546,0.113105513155460,0.102214343845844,0.393817663192749,0.025553524494171,0.048105958849192,-0.160029456019402,0.032217178493738,0.087322406470776,-0.084678135812283,-0.273401588201523,0.204977393150330) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.072592310607433,-0.078238122165203,0.124824181199074,-0.120598085224628,0.014911639504135,-0.038649976253510,0.370214819908142,0.080255500972271,-0.011643393896520,0.038408499211073,0.039870113134384,0.028567461296916,-0.239236146211624,-0.059721909463406,0.434505879878998,-0.133469730615616) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.021556971594691,-0.015320609323680,0.034834075719118,-0.040714431554079,-0.088572479784489,-0.013795765116811,-0.053630348294973,-0.018197635188699,0.032800536602736,0.043040633201599,-0.147964388132095,0.029396615922451,0.147263988852501,0.097182288765907,-0.237019285559654,0.080179117619991) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.137206360697746,-0.186380550265312,-0.068658314645290,-0.517179191112518) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(0.080267615616322,-0.129942700266838,0.024855665862560,-0.000014529590771);
res += mat4(0.133661851286888,-0.057106640189886,-0.036892332136631,-0.012740371748805,-0.039642181247473,-0.078132033348083,-0.118252590298653,-0.073492139577866,0.160685718059540,0.342187792062759,0.305116534233093,-0.003656296292320,-0.063844628632069,-0.058798011392355,-0.044941853731871,-0.064106263220310) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.041365392506123,-0.030470151454210,0.024478362873197,0.054714787751436,0.093498386442661,-0.178711280226707,0.085927836596966,0.164682775735855,0.147652387619019,0.140498325228691,-0.082450516521931,-0.087835416197777,-0.124851301312447,-0.173709735274315,-0.033459555357695,0.225771918892860) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.028389347717166,-0.075980231165886,-0.031319383531809,-0.068248920142651,0.165560707449913,-0.167110383510590,-0.136112585663795,-0.068251773715019,-0.110549397766590,-0.005717374850065,0.115051686763763,0.028700619935989,-0.052153870463371,-0.294528067111969,0.042797751724720,0.085823975503445) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.069576330482960,-0.030388744547963,-0.077154770493507,0.138555482029915,-0.041501723229885,0.122775666415691,0.150020271539688,-0.169458776712418,-0.106192953884602,0.066897287964821,0.014420467428863,0.011551754549146,0.017887018620968,0.033291682600975,-0.084934264421463,-0.174341782927513) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.146374851465225,-0.060371506959200,-0.119802266359329,0.059920001775026,0.233455508947372,0.118472829461098,0.358712375164032,0.308994203805923,0.124298334121704,0.054689817130566,0.021930878981948,-0.221055299043655,0.052639085799456,0.105770207941532,0.112306095659733,0.503420650959015) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.059412054717541,-0.058789871633053,0.026953322812915,-0.036051355302334,-0.173788517713547,0.101255036890507,-0.139912322163582,-0.059895582497120,-0.045096095651388,-0.053846720606089,0.144129842519760,-0.046579822897911,0.126759186387062,0.027232561260462,0.128312826156616,-0.070464454591274) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.035478934645653,-0.021208422258496,-0.155748978257179,-0.055919107049704,0.069634564220905,-0.015764750540257,-0.152604728937149,-0.171723037958145,-0.264172881841660,-0.172505557537079,0.064723059535027,0.093830943107605,-0.060734696686268,-0.042986359447241,-0.005691810045391,-0.013645690865815) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.005285671912134,-0.099296547472477,-0.024468751624227,-0.143726766109467,-0.108428739011288,-0.057755295187235,-0.141274318099022,0.085521042346954,-0.028168078511953,0.062943033874035,-0.139625549316406,-0.040629960596561,-0.026439428329468,-0.002087293658406,0.066392786800861,0.133470758795738) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.094443731009960,-0.107354782521725,0.146964311599731,-0.108689211308956,-0.081794887781143,-0.016635440289974,0.062206462025642,-0.066777884960175,-0.071246340870857,-0.059217661619186,0.030669834464788,0.078401498496532,-0.000236955034779,0.093871034681797,0.097376957535744,-0.028449105098844) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.003874980611727,0.056163933128119,0.155664801597595,-0.246848434209824,-0.046501658856869,0.143776625394821,0.136051699519157,-0.052201576530933,0.221236199140549,-0.077310383319855,0.123327858746052,0.158102646470070,0.026712248101830,0.016579044982791,0.158389538526535,0.030046606436372) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.037481747567654,0.073160819709301,0.145931959152222,-0.204035311937332,0.008968926034868,0.050931386649609,-0.305248826742172,0.145329430699348,-0.238333895802498,0.052198395133018,0.181279882788658,0.070551581680775,-0.026498097926378,0.072019942104816,0.008294398896396,0.043030291795731) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.117751404643059,-0.150182247161865,0.208515763282776,-0.075887732207775,-0.069505415856838,0.001278850249946,-0.114616453647614,0.093170404434204,-0.223471358418465,0.097289986908436,-0.106835968792439,0.127116620540619,-0.030918696895242,0.068843126296997,-0.063077680766582,0.057291142642498) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.147631555795670,0.033920004963875,-0.041177414357662,-0.018535193055868,0.050188370049000,0.069906510412693,0.025733105838299,0.001271895016544,0.260897666215897,-0.049133222550154,0.274672806262970,0.115243189036846,-0.107515938580036,-0.015424951910973,-0.026555698364973,-0.057231072336435) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.312779426574707,0.160917237401009,0.013578531332314,0.241782724857330,0.059424020349979,0.070503152906895,-0.091402590274811,-0.173490270972252,0.031656634062529,0.088734328746796,0.149786248803139,0.138967290520668,0.082624785602093,-0.091075472533703,0.085787534713745,0.056166805326939) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.098706841468811,0.016587508842349,0.101043783128262,0.035398904234171,0.070998467504978,0.095018319785595,-0.003476192010567,0.118403613567352,-0.464009463787079,-0.015593628399074,-0.107149496674538,0.028012983500957,0.015743900090456,-0.022677160799503,-0.007608058396727,0.037447255104780) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.144351348280907,0.017332773655653,0.090265162289143,-0.042445976287127,-0.071223564445972,0.034241955727339,-0.012990730814636,-0.078046306967735,0.087693378329277,-0.037934165447950,0.108951590955257,0.122263148427010,0.082443341612816,-0.014952592551708,-0.049450889229774,-0.064812816679478) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.073257811367512,0.090643584728241,-0.126214936375618,-0.265844732522964,0.069588370621204,-0.010872032493353,0.036013625562191,-0.061177581548691,-0.001337863039225,0.053036283701658,-0.122994922101498,0.109774500131607,-0.021013721823692,0.038880374282598,-0.007051910273731,-0.086336560547352) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.021987808868289,-0.063484586775303,-0.077258884906769,-0.028969286009669,0.123758204281330,-0.043781295418739,-0.019429175183177,0.165613025426865,-0.183088466525078,-0.004041173029691,-0.020567780360579,-0.031644105911255,-0.096129506826401,0.069912828505039,0.154042422771454,0.057104837149382) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.055233437567949,0.254559963941574,-0.024489251896739,-0.073825582861900,-0.057883899658918,-0.153313949704170,0.154565244913101,-0.277586847543716,-0.160982683300972,-0.028480032458901,0.144497886300087,-0.062466759234667,-0.079254314303398,0.023654796183109,0.008729815483093,-0.112325213849545) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.074707284569740,0.368699669837952,-0.043839864432812,-0.104731351137161,-0.000026761650588,-0.231466755270958,-0.064821667969227,-0.056285575032234,-0.104893870651722,-0.087302736938000,0.012910744175315,0.065599948167801,0.016970669850707,-0.157182633876801,0.008193519897759,-0.206896871328354) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.003169524017721,0.139476880431175,-0.004152138251811,-0.115479737520218,-0.052612360566854,-0.119871482253075,0.105370379984379,-0.084243185818195,0.119300059974194,0.092021740972996,-0.050988525152206,-0.204774796962738,-0.090999372303486,-0.136131137609482,-0.013556474819779,0.193232029676437) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.094705082476139,0.166354745626450,-0.150665119290352,-0.420634984970093,0.024769727140665,0.072330005466938,-0.079642675817013,-0.070424549281597,0.072506614029408,0.012471450492740,0.004794592037797,-0.126387596130371,0.046082753688097,-0.086512796580791,0.163497984409332,-0.067225150763988) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.009762688539922,0.128120005130768,-0.086248964071274,0.021477937698364,-0.157962724566460,0.093948371708393,-0.137104064226151,-0.117831036448479,-0.025291375815868,0.040931351482868,0.081899359822273,0.135806366801262,0.072549082338810,0.053192831575871,-0.111627489328384,-0.018596289679408) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.128166168928146,0.138789251446724,0.055510342121124,0.111899837851524,0.116851635277271,0.066504321992397,0.052360016852617,-0.077273078262806,-0.123209230601788,0.106047987937927,-0.057398829609156,-0.047792386263609,-0.526237666606903,-0.011015001684427,-0.215816393494606,-0.018769826740026) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.017152339220047,-0.036114435642958,0.192897245287895,0.117866612970829,-0.117579877376556,0.032034199684858,-0.076734587550163,-0.159490928053856,-0.074479952454567,-0.069474495947361,-0.122029095888138,-0.111871659755707,-0.032921537756920,0.035300448536873,0.021810546517372,0.042235080152750) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.056361723691225,-0.134553998708725,0.241933107376099,0.351889610290527,0.115609258413315,-0.010172723792493,-0.056555416435003,-0.256611406803131,0.153739184141159,-0.032227769494057,0.006752196233720,-0.061250679194927,-0.016561612486839,-0.021792152896523,0.009995411150157,-0.267549246549606) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.006010724697262,-0.040111400187016,-0.209011659026146,0.002510551363230,-0.049442235380411,0.047309506684542,0.022276923060417,-0.168611794710159,0.118787251412868,0.009400856681168,-0.036283899098635,0.094950146973133,0.122060202062130,-0.013673149049282,-0.119553826749325,-0.056757025420666) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.078477695584297,0.202139094471931,0.002461540512741,0.001362237846479,0.094998873770237,0.092922285199165,0.035761162638664,0.026288673281670,-0.143010050058365,0.002967879874632,0.079431019723415,0.010087493807077,-0.057465817779303,-0.093068204820156,-0.075963944196701,-0.165426805615425) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.053046576678753,0.116972513496876,-0.159450754523277,0.128863200545311,0.183056086301804,0.259111613035202,0.050653055310249,-0.017961462959647,-0.117403224110603,0.067872703075409,-0.063142344355583,-0.128666326403618,0.087104558944702,-0.116737686097622,-0.041254598647356,-0.173072114586830) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.073992736637592,-0.011688413098454,0.114155501127243,0.016965150833130,-0.184428393840790,0.229112967848778,0.083189696073532,-0.025326948612928,0.151176705956459,0.111519001424313,0.071093276143074,-0.042799387127161,-0.153163388371468,0.139149621129036,-0.240912541747093,-0.129064694046974) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.059540551155806,-0.073905326426029,-0.008709764108062,-0.083878718316555,0.106492213904858,0.055239938199520,0.227152094244957,-0.031208874657750,-0.181506663560867,-0.022793764248490,0.013188879936934,0.029841037467122,0.050895828753710,0.070193387567997,0.108751706779003,-0.022614132612944) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.047273874282837,0.017405258491635,-0.232498884201050,0.266162991523743,-0.031145934015512,0.037871208041906,0.177469998598099,0.215933173894882,0.196484789252281,-0.018311671912670,0.053891465067863,-0.179183885455132,0.162826225161552,0.200334668159485,0.259494900703430,0.105749905109406) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.122958764433861,-0.001182655338198,0.160207018256187,0.025983007624745,-0.081649810075760,0.156484365463257,-0.027104448527098,-0.048513036221266,0.243981525301933,-0.061222977936268,0.128762409090996,-0.037537172436714,-0.280143946409225,0.046531245112419,-0.063808165490627,-0.023144591599703) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.032618504017591,0.016825838014483,0.101310960948467,0.077545769512653,0.214454054832458,0.030794838443398,0.292066246271133,0.279338598251343,0.005929911974818,0.025741048157215,0.131905660033226,-0.042837563902140,0.025868538767099,-0.042424492537975,-0.074925765395164,-0.162712052464485) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.245561659336090,-0.011652535758913,-0.213976860046387,0.180147647857666,0.112805940210819,-0.026030596345663,0.349003106355667,0.332501113414764,-0.040407322347164,0.046617686748505,0.089112311601639,-0.219682335853577,-0.054305918514729,-0.036037549376488,-0.049505099654198,-0.213891148567200) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.082081139087677,-0.007385795470327,0.058851059526205,0.011603463441133,-0.060037590563297,0.065792910754681,0.296133995056152,0.175357639789581,-0.031196329742670,0.066647790372372,0.110024504363537,-0.068271219730377,-0.118994623422623,0.058884453028440,-0.064085200428963,0.003560095792636) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.005452584009618,-0.059401463717222,-0.177855283021927,-0.086146943271160,0.007328333333135,0.075886443257332,-0.083002217113972,0.095614746212959,0.078815318644047,-0.001617179717869,0.076360367238522,-0.105774290859699,-0.105758823454380,-0.035334046930075,0.063714042305946,0.094206228852272) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.060896344482899,-0.041657716035843,0.027840610593557,-0.340958982706070,-0.012561435811222,-0.113848015666008,0.061822798103094,0.076558366417885,0.085414253175259,-0.015772713348269,0.012739222496748,-0.088634401559830,0.020431635901332,0.151955321431160,-0.080672346055508,-0.086941950023174) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.038415562361479,-0.042642164975405,-0.004713904578239,0.094762101769447,-0.037179686129093,-0.007801464758813,0.187125787138939,-0.199581980705261,0.075118310749531,-0.055687855929136,-0.045435979962349,-0.036685939878225,-0.036405004560947,-0.120225474238396,-0.040565479546785,-0.000472837418783) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.003556873416528,-0.067530177533627,0.137527167797089,-0.158368781208992,-0.223908796906471,0.007825286127627,-0.174038201570511,-0.099379360675812,0.018574226647615,-0.053077705204487,0.031764425337315,0.056485161185265,0.019152574241161,-0.018256921321154,0.069337911903858,0.025870421901345) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.210834950208664,0.088620424270630,0.284634143114090,0.391352117061615,0.039482932537794,-0.088129729032516,-0.051211170852184,0.030112683773041,-0.369324922561646,0.144637912511826,-0.075921662151814,0.143659040331841,0.019217710942030,0.190363571047783,-0.072271957993507,-0.038167182356119) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.206739380955696,0.100999042391777,-0.223750829696655,-0.025476634502411,0.261786788702011,0.080315090715885,0.053944371640682,0.025705112144351,-0.176858186721802,-0.040059864521027,-0.163953632116318,-0.092441014945507,-0.013960791751742,-0.010446282103658,-0.046630043536425,-0.099613919854164) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.022206703200936,-0.027996739372611,0.029367703944445,0.074147284030914,0.001211202819832,0.067527256906033,0.163919746875763,0.031146600842476,-0.009258676320314,-0.089480876922607,-0.093993358314037,0.073817990720272,0.009807571768761,0.014315024018288,0.110751241445541,0.026221457868814) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.248318016529083,-0.019620213657618,-0.097032383084297,-0.187674462795258,0.006898330990225,0.062406573444605,0.022214569151402,0.176596939563751,0.153884440660477,-0.014264388941228,0.165977433323860,-0.207989141345024,0.027722954750061,-0.079639218747616,-0.119757123291492,-0.011759788729250) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.031577698886395,-0.020073698833585,0.112123630940914,0.025329301133752,-0.016215438023210,0.111850358545780,-0.102603115141392,-0.171387568116188,0.052885867655277,0.002297954401001,0.021371267735958,0.117791168391705,0.002274853410199,-0.077795669436455,-0.017693649977446,0.017998211085796) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.097479067742825,-0.107806093990803,0.051482222974300,0.001785291009583,-0.000873276614584,0.075337171554565,-0.155636772513390,0.059284638613462,-0.239003017544746,0.230625599622726,-0.000496153254062,0.115548096597195,-0.114683978259563,-0.204516857862473,-0.051976356655359,0.051450792700052) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.040715344250202,-0.057576715946198,0.396863400936127,0.025871485471725,-0.155560687184334,0.266883432865143,0.144804492592812,0.045327659696341,0.110979013144970,0.429668575525284,0.389859974384308,0.346345484256744,0.128509938716888,0.265068948268890,0.012000549584627,0.193887829780579) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.066611781716347,-0.065443262457848,0.139257237315178,0.214016720652580,0.239179626107216,0.019166138023138,0.117750421166420,0.184585154056549,0.165147989988327,0.258142173290253,-0.374487578868866,0.042052429169416,0.012337017804384,0.006359613034874,0.235384270548820,-0.216347903013229) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.025084231048822,0.061066064983606,-0.180430859327316,0.122075945138931,-0.353599578142166,0.130305975675583,-0.204259440302849,0.076676331460476,-0.112720914185047,-0.025666479021311,-0.068029798567295,-0.241037264466286,0.143916606903076,-0.123207941651344,-0.033966202288866,-0.049295078963041) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.191789761185646,0.045485664159060,0.151163369417191,0.121748737990856,-0.237282454967499,-0.026396717876196,-0.204266905784607,-0.232119262218475,-0.121782921254635,-0.203022420406342,-0.095040075480938,-0.038443639874458,-0.284493029117584,0.085909783840179,-0.244637444615364,0.058419503271580) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.081853285431862,0.116105251014233,0.183972120285034,0.137267336249352,0.303930491209030,-0.008368783630431,-0.027343310415745,-0.004533258266747,0.233077839016914,-0.153482824563980,-0.020051838830113,0.061204969882965,0.393295019865036,0.021189466118813,0.223680809140205,0.202033042907715) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.187281817197800,0.041551224887371,0.059215009212494,-0.037418030202389,-0.037522304803133,-0.089354775846004,0.152607247233391,-0.200147032737732,0.035578325390816,-0.007470899727196,-0.049583982676268,-0.027936942875385,-0.030269224196672,-0.001693974831142,0.102664589881897,-0.133869722485542) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.075648717582226,0.021794000640512,-0.032153293490410,-0.017163582146168,-0.149706855416298,0.001918742083944,0.151194363832474,0.127310335636139,-0.026593187823892,0.039376232773066,0.054590083658695,-0.207508310675621,-0.214831858873367,-0.055325645953417,-0.092347644269466,-0.034351386129856) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.130454495549202,0.060880579054356,0.126547202467918,0.184042125940323,0.127276852726936,-0.030333044007421,0.006559789646417,-0.114837214350700,-0.059672635048628,-0.052147563546896,-0.064925566315651,-0.081381529569626,-0.062204681336880,-0.131119862198830,0.108285449445248,-0.009172366000712) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.470699965953827,0.021302422508597,0.169785365462303,0.011313764378428) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.004382886458188,-0.071010977029800,-0.092794448137283,-0.065383762121201);
res += mat4(-0.038178604096174,-0.034521449357271,0.107514977455139,0.029696045443416,-0.076634541153908,0.062907956540585,-0.167332649230957,-0.043109972029924,-0.050284370779991,-0.078624911606312,0.067617543041706,-0.198208108544350,0.048031099140644,-0.066966868937016,-0.130803376436234,0.016074925661087) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.225585713982582,-0.011120857670903,0.006099142599851,0.023669939488173,0.136138379573822,-0.185045659542084,0.009781640022993,0.026385964825749,0.086736850440502,-0.109094366431236,-0.004430674947798,0.110663972795010,0.060407690703869,0.078009791672230,-0.157628461718559,-0.264210075139999) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.087446473538876,-0.007599472068250,-0.069418184459209,-0.075331375002861,-0.126665517687798,0.263976991176605,-0.056700240820646,0.011528073810041,0.037876699119806,-0.203210040926933,-0.045831207185984,-0.045557428151369,0.183874905109406,0.101387739181519,-0.077685169875622,-0.171783491969109) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.152108147740364,-0.067264333367348,-0.068410560488701,0.103605724871159,-0.084278114140034,0.167538821697235,-0.102162055671215,-0.023345762863755,-0.064760915935040,-0.094865493476391,-0.165849268436432,0.247942492365837,0.107465595006943,-0.175367712974548,-0.012781922705472,-0.024647859856486) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.164561584591866,-0.145115748047829,-0.036038573831320,0.027598982676864,-0.032761067152023,-0.368458658456802,0.319871544837952,-0.142328947782516,0.036690015345812,-0.177328854799271,-0.087291747331619,0.059402871876955,-0.128900334239006,-0.023491673171520,-0.123852111399174,0.048906043171883) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.060132522135973,-0.036226972937584,-0.083298251032829,0.005637395661324,0.103487074375153,0.493496149778366,0.229160308837891,0.190091386437416,-0.100625492632389,-0.214338004589081,0.096764773130417,-0.147435262799263,-0.027629971504211,-0.448017150163651,0.192542210221291,-0.367063313722610) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.037200983613729,0.094310991466045,0.043279584497213,0.018973147496581,0.121300026774406,-0.017357625067234,-0.006070079747587,0.027377966791391,-0.003355987835675,0.000779182708357,-0.043118048459291,0.057308878749609,-0.070397004485130,-0.061880696564913,0.000150467734784,-0.053666625171900) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.072574496269226,-0.039193544536829,-0.131361767649651,0.080160081386566,-0.031060762703419,-0.041024167090654,-0.059335924685001,-0.059654235839844,0.099580183625221,-0.183143630623817,-0.001709798118100,0.127747103571892,0.075753629207611,-0.080100722610950,0.002301388187334,-0.075436867773533) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.031940869987011,-0.058646675199270,-0.094824843108654,0.000983893405646,-0.009458696469665,0.023763826116920,-0.062651388347149,-0.096493735909462,-0.070860639214516,-0.148229733109474,0.091728925704956,-0.019006071612239,-0.106692977249622,-0.060552559792995,0.136549428105354,-0.121417634189129) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.016037633642554,0.165210902690887,0.210701882839203,-0.036698356270790,0.017572315409780,0.054585460573435,-0.040601029992104,-0.046832270920277,0.080341465771198,0.011663429439068,0.416786909103394,-0.073935024440289,0.060376375913620,0.188950970768929,0.070382311940193,0.050375446677208) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.059091035276651,0.081270784139633,-0.312083005905151,0.039609789848328,-0.068142846226692,0.185469135642052,0.278693825006485,0.035715762525797,-0.015905253589153,0.136630177497864,0.278375923633575,0.214962452650070,0.038197357207537,-0.078138954937458,-0.001527204760350,0.043814145028591) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.146415024995804,-0.000727673177607,0.019957005977631,0.080046072602272,0.011107838712633,0.059277400374413,0.088528543710709,-0.248537003993988,0.031216476112604,0.075477965176105,0.013303607702255,-0.008422898128629,-0.125635758042336,0.004618648439646,0.027639217674732,-0.012454188428819) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.234480440616608,0.161376446485519,0.078962884843349,-0.083342418074608,0.020988060161471,0.079102963209152,0.034406661987305,-0.032202430069447,-0.002822007285431,0.124302096664906,0.091345004737377,0.074883162975311,-0.054937932640314,0.065984822809696,-0.128835186362267,-0.029998451471329) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.479933321475983,-0.078850075602531,0.332401752471924,-0.016072675585747,0.154962286353111,-0.018469067290425,-0.066119357943535,0.076263442635536,0.111068122088909,-0.012567707337439,0.248371720314026,0.072790369391441,-0.014865140430629,-0.010252429172397,-0.009804922156036,-0.058803230524063) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.280359685420990,0.258796811103821,0.181867495179176,0.233003392815590,-0.081662885844707,0.185951560735703,-0.121992029249668,-0.196905642747879,-0.000290170428343,0.278507828712463,-0.107357628643513,0.268833309412003,-0.129234477877617,0.094423234462738,-0.081758700311184,-0.166489064693451) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.390859246253967,0.130123719573021,0.162810921669006,-0.198795437812805,-0.032843079417944,0.066362224519253,-0.011809192597866,0.053710270673037,-0.089648492634296,0.145438015460968,0.161946609616280,-0.054484002292156,-0.019507626071572,0.038151767104864,0.064979270100594,-0.148756369948387) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.300361603498459,0.112537316977978,-0.004616513848305,-0.076215684413910,0.088864795863628,-0.086255393922329,-0.060669071972370,0.008322658017278,-0.022299690172076,0.026532514020801,0.017317315563560,0.144433408975601,-0.034260366111994,-0.002341882325709,0.064329907298088,0.008147824555635) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.161469206213951,-0.298151046037674,-0.039238907396793,-0.174732103943825,-0.006224577315152,0.107317365705967,-0.086332991719246,-0.076296679675579,0.017428804188967,-0.082751862704754,-0.128271788358688,-0.050432682037354,0.112589314579964,-0.056058235466480,-0.123745031654835,0.055673427879810) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.060448676347733,-0.054450951516628,-0.093379832804203,0.076362527906895,-0.062073081731796,0.171812042593956,-0.040076166391373,0.038449469953775,-0.215164303779602,0.056565511971712,-0.121320143342018,0.082817114889622,0.049992639571428,0.054994896054268,0.011703194119036,0.072227545082569) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.129852637648582,-0.077064111828804,0.032061479985714,-0.017751013860106,0.043494317680597,0.091398797929287,-0.030908036977053,-0.075645804405212,0.031263124197721,-0.060281455516815,-0.084163792431355,-0.062808029353619,0.353176265954971,-0.059423308819532,-0.047460600733757,0.036718841642141) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.101467557251453,0.084761016070843,-0.134133964776993,-0.071405217051506,0.043679647147655,-0.004835940431803,-0.014928257092834,-0.122985839843750,0.070926271378994,0.139039471745491,-0.079949222505093,-0.055328685790300,-0.157912045717239,0.167339041829109,0.053883504122496,0.257168531417847) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.060228358954191,0.045096457004547,-0.133557334542274,-0.103096842765808,-0.079755999147892,-0.092595569789410,-0.081975825130939,0.065044030547142,-0.046098750084639,0.049355782568455,0.069606550037861,0.089573778212070,-0.061786789447069,-0.019313707947731,-0.194316431879997,-0.052473470568657) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.098407939076424,-0.050155576318502,-0.094601936638355,0.030036214739084,0.114830099046230,-0.089148804545403,0.142447009682655,0.206435844302177,-0.021073658019304,0.061912216246128,0.126987203955650,0.062589630484581,0.220777973532677,-0.085727609694004,0.230643525719643,-0.001847890904173) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.238029882311821,0.139444842934608,-0.159202054142952,0.188906297087669,0.120127879083157,0.108319960534573,0.056342266499996,0.015529739670455,0.104071609675884,0.029147179797292,0.109935976564884,0.117920741438866,0.063464976847172,0.251090437173843,-0.004924145061523,0.506632566452026) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.048428472131491,-0.017578642815351,-0.204434067010880,0.113602578639984,-0.040475361049175,-0.021933672949672,-0.027564818039536,-0.005412842612714,-0.016848450526595,-0.047869067639112,0.064527302980423,0.031010583043098,-0.141918137669563,0.098027214407921,-0.011930789798498,-0.010963265784085) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.062626466155052,-0.200631648302078,0.291095316410065,-0.006624654401094,0.005366643425077,-0.075064182281494,0.049997687339783,0.001852148678154,0.099441014230251,-0.087179608643055,-0.079112052917480,-0.047608926892281,-0.310248434543610,-0.043168120086193,0.196742609143257,0.063175804913044) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.029686387628317,0.575412988662720,-0.074406065046787,0.289416044950485,-0.028015809133649,0.037264976650476,0.103234924376011,-0.007773494347930,0.055136732757092,-0.058120112866163,0.039990857243538,-0.151799798011780,0.156130507588387,-0.012323854491115,0.022942757233977,0.100271880626678) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.005075004417449,0.119492508471012,-0.080200158059597,0.097426541149616,0.006803795695305,-0.002424926031381,0.066683650016785,0.028553733602166,0.012667333707213,-0.008548787795007,0.203411504626274,-0.178840920329094,0.028429301455617,0.105216287076473,-0.154375582933426,-0.021580323576927) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.145204856991768,0.067801296710968,0.035048875957727,0.202603802084923,0.017725488170981,0.085237570106983,-0.077795676887035,-0.043471213430166,-0.226976498961449,-0.097384467720985,0.002663147170097,-0.031503532081842,0.242383345961571,-0.056647829711437,-0.197752088308334,-0.007618473842740) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.065645448863506,-0.057765167206526,0.030010152608156,-0.016393417492509,0.068903580307961,0.059700775891542,0.039323795586824,0.033410497009754,0.205294713377953,0.073312669992447,-0.041943561285734,0.115207873284817,-0.285482645034790,0.120599828660488,-0.253470629453659,0.129731357097626) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.176485836505890,0.213666304945946,-0.084143370389938,0.184751152992249,-0.079165615141392,0.170557618141174,0.140571475028992,-0.102376244962215,0.206463426351547,-0.087839938700199,-0.024517323821783,-0.056045029312372,-0.020172206684947,0.022025523707271,0.000199167858227,-0.075289011001587) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.138675436377525,0.144304633140564,-0.054476805031300,0.129925683140755,0.059512455016375,0.203046232461929,0.077126964926720,-0.012265071272850,-0.130967780947685,-0.157271102070808,0.049111686646938,-0.063637599349022,-0.142043098807335,-0.071647383272648,0.254096567630768,-0.109093911945820) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.001079748151824,-0.027280880138278,0.122107066214085,-0.023008100688457,0.091616719961166,0.214699655771255,0.081297941505909,0.161645486950874,-0.191816821694374,0.069071643054485,0.090183131396770,0.039087194949389,0.238885611295700,0.143287584185600,0.213309198617935,0.344054847955704) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.100777275860310,0.095904573798180,-0.038391780108213,-0.047829750925303,-0.101098269224167,0.166432768106461,0.244588315486908,-0.056355960667133,-0.015255654230714,-0.092095091938972,-0.083978869020939,-0.076735340058804,0.018324460834265,0.093903511762619,0.075852371752262,-0.040231477469206) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.147453963756561,-0.006467647850513,0.028608744964004,-0.035135224461555,-0.178339883685112,0.172155395150185,0.282158285379410,0.043099369853735,0.292515456676483,-0.198569223284721,0.002411913126707,0.086935669183731,0.031821489334106,-0.046064209192991,-0.066833190619946,0.031426224857569) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.014618940651417,-0.043118160218000,0.022016618400812,-0.027886092662811,-0.000203098534257,0.043540962040424,0.256191670894623,0.143778771162033,-0.116216070950031,0.142627581954002,0.084026031196117,0.202782750129700,-0.098632521927357,0.065370589494705,0.051178365945816,-0.003485857509077) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.186957597732544,-0.062168002128601,0.148181349039078,-0.096712999045849,0.003536344040185,0.055796463042498,0.066002249717712,-0.005132673773915,0.120648942887783,-0.024032846093178,0.017589019611478,0.095977984368801,-0.030066329985857,0.009679257869720,0.091584116220474,0.093894809484482) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.036734990775585,0.012344064190984,-0.374126702547073,0.161612942814827,-0.092620380222797,0.050956420600414,0.268162399530411,-0.144048750400543,0.004327535629272,0.027944084256887,-0.116412572562695,-0.221550017595291,0.101095847785473,0.032113187015057,-0.117402434349060,-0.062212433665991) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.304495096206665,-0.081498771905899,0.027336208149791,-0.088801339268684,0.126191139221191,0.075636573135853,-0.022255610674620,0.019140550866723,-0.142570406198502,0.107883892953396,0.067860953509808,0.142762094736099,-0.060393642634153,-0.131602108478546,-0.113563925027847,-0.128474995493889) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.100511312484741,0.115063846111298,-0.172406882047653,-0.097694829106331,0.063516370952129,-0.082232207059860,-0.156294286251068,0.141428709030151,0.039009917527437,0.057290837168694,0.054339099675417,0.049126621335745,-0.109962925314903,-0.000023858317945,0.149492338299751,-0.194063320755959) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.188499405980110,-0.168972253799438,0.285398751497269,-0.226767137646675,-0.086380794644356,-0.107878863811493,-0.154845237731934,-0.192965671420097,0.088670775294304,0.040923841297626,0.168852120637894,0.125195875763893,-0.004159097094089,-0.005458920728415,-0.071551941335201,-0.011859424412251) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.169227555394173,0.383054345846176,0.074476569890976,0.317052602767944,0.166331261396408,-0.022440806031227,0.152709394693375,-0.035088956356049,0.110948443412781,0.076794840395451,-0.231888368725777,0.009679375216365,-0.042832802981138,-0.020342811942101,-0.113430321216583,-0.010595846921206) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.047917291522026,-0.060053978115320,0.037832882255316,-0.022540668025613,0.018322961404920,-0.107559882104397,-0.176210269331932,-0.034501798450947,-0.052747420966625,-0.107515208423138,-0.002415511989966,0.008059132844210,-0.027103736996651,0.035377144813538,0.119872964918613,0.064613491296768) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.152524277567863,0.146640211343765,-0.028516964986920,0.218562081456184,-0.119162254035473,0.123221680521965,0.238761425018311,-0.027969041839242,-0.235149636864662,0.059865675866604,-0.011495297774673,-0.060800276696682,-0.124163903295994,0.156623646616936,-0.120534211397171,-0.065523184835911) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.099997714161873,-0.223207652568817,-0.028428366407752,-0.237377688288689,-0.085864409804344,-0.010917006991804,-0.068041205406189,-0.056732900440693,0.099361017346382,-0.200765639543533,0.125014841556549,-0.000323077721987,0.111912623047829,-0.091893658041954,-0.095586314797401,-0.050344668328762) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.005182362627238,0.078922852873802,0.065480925142765,-0.118996433913708,0.108807645738125,-0.033937051892281,0.060895852744579,0.227779492735863,-0.236869052052498,0.093913003802299,-0.454571813344955,0.001425138092600,-0.103846780955791,0.005853012669832,-0.040766403079033,0.138021305203438) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.107131130993366,-0.062505841255188,0.240866899490356,-0.068906240165234,-0.182668417692184,-0.098988071084023,0.143935233354568,-0.204022154211998,0.107997685670853,-0.744827389717102,0.643706798553467,-0.207165107131004,-0.145254895091057,-0.056230809539557,0.085652440786362,-0.108178809285164) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.234654620289803,-0.030994584783912,0.146369427442551,-0.036369875073433,0.115241259336472,0.095129817724228,0.137473806738853,-0.022959325462580,0.156253471970558,0.370592832565308,0.389701753854752,0.259722650051117,0.228328868746758,0.027950707823038,0.000879286380950,0.038707144558430) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.192424461245537,0.021736511960626,0.093800462782383,0.065259829163551,0.134259581565857,-0.140745356678963,0.051975522190332,0.173627123236656,0.208497539162636,-0.025374783203006,-0.198114216327667,-0.080396212637424,0.361851304769516,-0.172571867704391,0.230404585599899,-0.030813112854958) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.271885573863983,-0.005877492018044,-0.061477456241846,-0.155939713120461,0.033505070954561,-0.005651310551912,-0.253646224737167,-0.027279483154416,-0.262557119131088,-0.103281646966934,-0.079559266567230,-0.190045133233070,-0.058937113732100,0.137454375624657,-0.383104771375656,0.220257490873337) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.329327940940857,0.004034084733576,0.048179760575294,0.098114714026451,-0.176744326949120,-0.225972995162010,-0.063258685171604,-0.210931479930878,0.008111438713968,-0.132611528038979,-0.098236978054047,0.102390132844448,-0.298111289739609,-0.354683190584183,0.218832463026047,-0.460394054651260) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.130872696638107,0.114678502082825,0.055536035448313,-0.131684616208076,-0.236692875623703,0.177939161658287,0.068343691527843,0.081813879311085,-0.120477959513664,-0.140072003006935,0.052570201456547,0.115414559841156,0.175850570201874,0.082500755786896,0.178118541836739,-0.021969920024276) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.012679133564234,0.032459963113070,0.065866976976395,-0.002298314357176,0.365977615118027,-0.069579668343067,0.141035094857216,0.063090831041336,0.035094238817692,-0.133145153522491,0.032413389533758,-0.169602528214455,0.073683127760887,0.042166415601969,-0.057927548885345,0.175128862261772) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.132328256964684,-0.121200874447823,0.184397608041763,-0.105718746781349,-0.085871502757072,0.265854299068451,-0.054372496902943,0.109197460114956,0.013621222227812,0.057708792388439,-0.033318601548672,-0.027823725715280,-0.276110887527466,-0.022532884031534,0.050827395170927,-0.106737211346626) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.662863194942474,-0.001220015226863,-0.046291772276163,-0.077738709747791) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.203359007835388,-0.625019669532776,-0.497395873069763,-0.032285638153553);
res += mat4(-0.067695185542107,-0.070449210703373,0.003897815942764,0.082732662558556,0.006225288845599,-0.064685791730881,-0.168885007500648,-0.033511769026518,-0.044105041772127,-0.003062428208068,-0.030605630949140,0.029961870983243,0.063587471842766,0.098422713577747,0.071817390620708,0.082950189709663) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.049762140959501,-0.236640259623528,-0.022477457299829,0.102145142853260,-0.019030613824725,-0.338344186544418,-0.360963553190231,-0.143975272774696,0.003345602657646,-0.054901324212551,0.186683908104897,0.058997556567192,0.288132607936859,0.177810922265053,-0.050256721675396,0.001579556264915) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.104340061545372,-0.125936880707741,-0.088822558522224,0.131300374865532,0.001962504349649,-0.061561293900013,-0.113035999238491,-0.078314058482647,-0.032780587673187,-0.012596941553056,-0.111415356397629,-0.001332561252639,0.171860486268997,0.086636058986187,0.050842016935349,0.058544281870127) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.083125233650208,0.005656646564603,-0.025980142876506,-0.194417789578438,-0.097646050155163,-0.016833450645208,-0.045014873147011,-0.112928323447704,0.024482736364007,0.184427976608276,-0.125725224614143,-0.144834831357002,0.137834101915359,0.025310948491096,-0.014682609587908,0.001463294145651) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.105872377753258,-0.086131446063519,-0.044678065925837,-0.614137172698975,-0.209826990962029,-0.375550508499146,0.084686078131199,0.085948131978512,-0.121908299624920,0.036674521863461,0.045843485742807,0.024038642644882,-0.169966682791710,-0.108640708029270,-0.037337645888329,-0.093461498618126) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.046119365841150,0.004884789232165,0.011971098370850,-0.041879151016474,-0.264132082462311,-0.224434465169907,0.124892443418503,-0.082116857171059,-0.016380108892918,-0.077422790229321,-0.028712352737784,0.043157700449228,-0.227999582886696,0.021109219640493,0.017176879569888,-0.233933836221695) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.021466277539730,-0.044648706912994,-0.102129586040974,0.138038009405136,-0.093071274459362,-0.050580225884914,0.005161769222468,-0.016257263720036,0.050122827291489,0.012544658966362,-0.064281508326530,0.244866430759430,-0.004913420416415,0.055852450430393,0.102632232010365,0.061255704611540) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.141283705830574,0.001181000960059,0.046808104962111,0.104222096502781,-0.156775668263435,-0.150560155510902,-0.144273847341537,0.380256354808807,0.034212868660688,0.000016845082428,0.030408831313252,-0.047498326748610,-0.054393388330936,-0.116661392152309,0.051732808351517,-0.108017042279243) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.046248286962509,-0.004488591104746,0.022068822756410,-0.057106800377369,-0.233264669775963,-0.164345920085907,-0.055516581982374,0.124367795884609,0.004585176706314,-0.029878567904234,-0.097508698701859,-0.002538991160691,-0.215140327811241,0.045810334384441,0.103617191314697,0.175164848566055) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.066753908991814,0.036328971385956,0.014912762679160,-0.030251419171691,0.024127624928951,0.143681287765503,-0.009320877492428,0.153113767504692,-0.204356566071510,-0.308354258537292,-0.265882104635239,0.002472581807524,-0.141154751181602,-0.033858019858599,0.029607061296701,-0.006274328567088) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.046869546175003,0.157135814428329,-0.301230072975159,0.014568910002708,-0.153646737337112,0.016338396817446,0.086440868675709,0.187994539737701,0.265941143035889,-0.272469073534012,-0.083803065121174,-0.076278306543827,-0.029527898877859,0.148718684911728,0.023338070139289,0.043185982853174) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.063556395471096,0.121871046721935,-0.081978663802147,-0.063437700271606,-0.199758499860764,0.118816725909710,0.082024425268173,-0.196992293000221,-0.077165879309177,0.025615848600864,-0.020164245739579,-0.078788898885250,0.040688727051020,-0.060534704476595,-0.029007092118263,0.002175253583118) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.001156647456810,-0.006052941083908,0.085879273712635,-0.185707479715347,-0.013159321621060,0.017982214689255,0.100214585661888,-0.058044712990522,-0.112796507775784,-0.292349427938461,0.023498192429543,0.247552230954170,0.092939533293247,0.142220884561539,0.030621225014329,-0.023597629740834) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.187351390719414,-0.484938442707062,0.415406197309494,-0.123641870915890,-0.156013205647469,0.006940234918147,0.058943461626768,-0.314174771308899,-0.126828312873840,-0.267490178346634,0.197890192270279,-0.268011182546616,0.120555222034454,-0.027498267591000,-0.170450940728188,0.097790896892548) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.116062059998512,0.127572864294052,0.025355001911521,-0.110874809324741,-0.115545943379402,0.126515820622444,0.075719438493252,-0.092769138514996,-0.097033284604549,-0.000432237662608,0.065642185509205,-0.051686227321625,-0.012148723006248,-0.126845076680183,-0.037472307682037,0.020993039011955) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.037775732576847,0.064687788486481,0.029161768034101,0.006527243647724,0.047986812889576,0.011341099627316,-0.030919382348657,-0.035923168063164,-0.103272482752800,-0.138241633772850,0.028304573148489,0.184734001755714,0.032419737428427,-0.037908356636763,-0.120276205241680,-0.119778290390968) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.235747277736664,-0.067559733986855,-0.162419542670250,0.741244554519653,0.092538051307201,0.017749831080437,0.096115209162235,0.007950749248266,-0.112639956176281,-0.043445955961943,0.014871111139655,0.224125385284424,-0.050664242357016,-0.082894168794155,0.020445054396987,-0.109130188822746) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.004379329737276,0.030162325128913,-0.062441572546959,0.083576731383801,-0.012237892486155,0.013461592607200,0.076669879257679,-0.048607897013426,-0.059059359133244,0.173612892627716,0.110911726951599,0.135017663240433,0.095931820571423,-0.012753302231431,0.056315455585718,-0.062329564243555) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.060153633356094,0.055915255099535,0.192117616534233,0.047772467136383,-0.000808596494608,-0.086244240403175,-0.061303831636906,0.030253294855356,0.077102556824684,0.075848326086998,-0.023145776242018,-0.006560794543475,0.056112702935934,0.118464879691601,-0.026373203843832,0.002488228492439) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.008044339716434,-0.114190839231014,0.083878733217716,-0.097309596836567,-0.128485724329948,-0.299382209777832,0.140237197279930,-0.015477160923183,0.102145016193390,0.118800155818462,-0.124406449496746,-0.007577141746879,-0.109125085175037,-0.076181747019291,-0.405823320150375,-0.027038771659136) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.008814307861030,0.035258650779724,0.020268589258194,0.085226081311703,-0.113465480506420,-0.439146965742111,-0.287509143352509,0.034425053745508,0.023391989991069,0.066457502543926,0.025362566113472,0.035649664700031,0.037790153175592,0.004373707808554,0.342516213655472,0.142597794532776) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.099872425198555,0.063238836824894,0.012782049365342,0.058169465512037,-0.006622151937336,0.132510095834732,0.074752464890480,-0.098872244358063,0.047414898872375,-0.079702951014042,0.147259324789047,-0.135773479938507,-0.051541049033403,0.102408543229103,-0.010952104814351,-0.086922943592072) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.118199042975903,0.114619173109531,-0.014342149719596,0.023157110437751,-0.085149034857750,-0.072003088891506,-0.043901972472668,-0.352981030941010,-0.061811458319426,-0.192323133349419,0.165428519248962,-0.156807452440262,0.006008762866259,-0.501931309700012,0.040385305881500,-0.036490432918072) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.026608711108565,0.076454088091850,0.013428891077638,0.036254998296499,-0.154125273227692,-0.048702083528042,-0.080954939126968,-0.124884985387325,0.000446595920948,-0.135049477219582,-0.079918682575226,-0.063803955912590,0.161040678620338,0.179405897855759,0.160979315638542,-0.149897202849388) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.043970201164484,0.171088978648186,0.067315638065338,-0.148050904273987,0.118831641972065,0.076329052448273,-0.020676730200648,0.085069760680199,-0.069131053984165,0.007567052729428,-0.044398352503777,0.042784541845322,0.026888379827142,0.066826857626438,-0.011900867335498,-0.055705398321152) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.089871734380722,-0.053256575018167,0.005555321928114,-0.234636709094048,0.042221501469612,0.153527185320854,-0.098353199660778,0.310016691684723,0.030837263911963,0.004118009470403,-0.016114834696054,0.302942156791687,-0.080051004886627,-0.060752693563700,-0.050132784992456,0.212203025817871) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.135131612420082,0.093836396932602,-0.016506921499968,-0.073082000017166,0.086866840720177,-0.052795927971601,-0.083315558731556,0.057232238352299,0.065059468150139,-0.015981022268534,-0.035134185105562,-0.078217387199402,-0.097945004701614,0.052941884845495,0.015753626823425,0.037346515804529) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.012913807295263,0.006709587294608,-0.004386061802506,0.017748007550836,0.124586082994938,0.055108189582825,-0.356889694929123,-0.042683143168688,0.050052251666784,-0.300420910120010,0.571852385997772,0.002983475103974,0.041026271879673,0.012633845210075,-0.021085387095809,0.105899512767792) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.005336332600564,0.085940994322300,0.020313097164035,0.262777805328369,-0.040491472929716,0.125442758202553,-0.401006668806076,0.017961710691452,0.159392669796944,-0.100609168410301,0.749670624732971,0.026956941932440,0.096399851143360,0.086461529135704,-0.303674280643463,-0.081041313707829) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.034177903085947,-0.026106549426913,-0.033656246960163,-0.014031887985766,0.081669934093952,0.033448208123446,-0.299818396568298,-0.078091390430927,0.186933979392052,-0.172979250550270,0.007737233769149,0.020605588331819,0.162146151065826,0.133874967694283,-0.036645419895649,0.028249101713300) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.112963937222958,-0.009240389801562,-0.036764319986105,-0.011854687705636,0.105128072202206,-0.035314492881298,-0.161132574081421,-0.158305957913399,-0.104111693799496,0.369548469781876,-0.299903571605682,-0.063019163906574,0.150047048926353,-0.031445752829313,-0.046082150191069,-0.107025533914566) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.112090766429901,0.070122845470905,0.029984120279551,0.043830804526806,0.182458847761154,-0.028330279514194,-0.232293516397476,-0.232038334012032,-0.125023111701012,0.755610048770905,-0.195895478129387,0.363494634628296,0.144139587879181,-0.290597647428513,0.078276276588440,-0.242294698953629) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.016498262062669,-0.035898499190807,-0.023361993953586,-0.081368476152420,-0.103973284363747,0.124663516879082,-0.127966776490211,-0.148472592234612,0.092606373131275,-0.261615663766861,-0.140497893095016,-0.017005253583193,0.075989447534084,0.094716481864452,0.066190987825394,-0.403626114130020) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.076418086886406,-0.063916929066181,0.082792647182941,-0.034416716545820,-0.150283887982368,-0.268763393163681,-0.036034211516380,0.062042977660894,0.024361182004213,-0.060963530093431,-0.308690249919891,-0.047759257256985,-0.057006485760212,-0.063822247087955,0.004220434930176,0.034301232546568) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.086454667150974,-0.067320443689823,-0.009883834980428,-0.286587685346603,-0.202964320778847,-0.084096841514111,-0.197401627898216,-0.114511467516422,0.413048326969147,0.417273968458176,-0.381216615438461,-0.128294631838799,-0.149233087897301,0.085253886878490,-0.019804093986750,0.267017155885696) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.000095425843028,-0.027991509065032,-0.010409101843834,0.003017414594069,-0.095101810991764,-0.043797437101603,-0.050958484411240,-0.232922717928886,0.145403131842613,-0.302858740091324,-0.197763726115227,0.084849081933498,-0.213387638330460,-0.072650663554668,0.003471823176369,0.086598575115204) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.011218625120819,-0.073737755417824,0.124095015227795,-0.220838129520416,-0.029838781803846,-0.099511675536633,0.092528417706490,0.033281657844782,0.111520767211914,0.162251636385918,-0.256846040487289,0.069777928292751,-0.148647978901863,-0.169978171586990,-0.382444858551025,-0.048746641725302) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.027424963191152,0.417153388261795,-0.346866607666016,0.092207737267017,0.028586875647306,-0.054630503058434,-0.045401662588120,-0.011538424529135,-0.042792785912752,-0.128548979759216,-0.033290836960077,0.061550475656986,-0.040374923497438,-0.197300866246223,-0.017837496474385,0.096442185342312) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.117740646004677,-0.164718106389046,0.122977659106255,-0.019114825874567,0.034515090286732,0.089660316705704,0.009393131360412,0.128256067633629,0.019527625292540,-0.057658772915602,0.203658998012543,-0.017392387613654,-0.073230348527431,-0.056635688990355,-0.001023468095809,-0.056422080844641) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.115021564066410,0.049010157585144,-0.052807953208685,0.001014705281705,-0.067311413586140,0.126732841134071,-0.030338974669576,0.117371223866940,-0.004692263435572,-0.249592825770378,0.130053892731667,-0.116352871060371,-0.136174604296684,-0.312864929437637,-0.171864286065102,-0.038866728544235) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.321745038032532,-0.265651851892471,0.270386427640915,-0.436195462942123,-0.044367510825396,0.093695782124996,-0.101622775197029,0.003106902120635,0.116372965276241,0.025030730292201,0.135882198810577,-0.118502944707870,0.074648208916187,0.102992802858353,0.131989181041718,-0.054802175611258) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.120188973844051,0.133209154009819,-0.081191197037697,0.153179481625557,-0.051166880875826,-0.125948309898376,0.077911823987961,-0.183109387755394,-0.051690116524696,0.217599734663963,-0.149307578802109,0.247749924659729,0.075531318783760,0.093473553657532,0.062471874058247,0.140165284276009) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.100707747042179,0.024001803249121,-0.052689064294100,0.003821092890576,0.145753696560860,0.069982178509235,0.014632409438491,0.188499256968498,-0.026732094585896,-0.044841889292002,0.014746892265975,0.053971279412508,-0.188918560743332,-0.357193261384964,-0.164831548929214,0.073752269148827) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.341124981641769,-0.138113692402840,0.091528572142124,0.302332669496536,0.057572659105062,-0.033799123018980,-0.028180848807096,-0.213825836777687,-0.173047587275505,0.106647625565529,-0.073273397982121,0.165625095367432,0.119152665138245,0.123794898390770,-0.047419689595699,-0.055668178945780) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.001684714457951,0.138959541916847,-0.058565877377987,0.028678802773356,-0.039004705846310,-0.078552052378654,0.017104165628552,0.098266333341599,0.109740443527699,-0.100240074098110,-0.002319246297702,-0.262838423252106,0.057858917862177,-0.061838623136282,0.014118842780590,-0.091475360095501) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.043759856373072,0.100391127169132,0.030155731365085,0.006199310068041,-0.127677783370018,-0.037422060966492,-0.013670605607331,0.088954605162144,-0.064332336187363,0.433564186096191,-0.052654258906841,0.050085809081793,0.085253164172173,0.061211820691824,-0.111019648611546,0.165193557739258) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.154812023043633,-0.023621864616871,-0.082293912768364,0.022601423785090,0.028768934309483,-0.076399162411690,0.238283112645149,0.128542691469193,-0.010812683030963,-0.030067134648561,0.120012752711773,0.019073056057096,-0.166534990072250,-0.085509963333607,0.543337047100067,0.066513925790787) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.273736357688904,0.085542768239975,0.114493936300278,-0.029873225837946,-0.013522285968065,-0.029225291684270,-0.017470307648182,-0.106022775173187,-0.073765926063061,0.077581927180290,0.027570087462664,0.090461604297161,-0.045950740575790,0.044786926358938,-0.392106026411057,-0.083893172442913) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.089563317596912,-0.050449814647436,0.149312525987625,-0.076147340238094,0.159773781895638,-0.055806484073400,-0.080536425113678,-0.057373847812414,0.246986687183380,0.195689216256142,-0.007145718205720,-0.188329458236694,0.015349796973169,-0.062094513326883,-0.067803509533405,-0.074559874832630) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.060952860862017,0.006788446102291,-0.001547147403471,0.060822397470474,0.013233071193099,0.362439483404160,-0.236552581191063,0.295133411884308,-0.182368725538254,0.088808886706829,-0.089611217379570,0.305774867534637,0.140763610601425,0.403294086456299,0.031753327697515,0.263692051172256) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.151982009410858,0.079247608780861,-0.081030838191509,-0.039758883416653,-0.067226380109787,0.000502459064592,0.065247632563114,0.204595029354095,-0.088549382984638,-0.009270812384784,0.084006614983082,0.063298322260380,0.011277279816568,-0.291216552257538,0.040769044309855,0.062382228672504) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.184178858995438,0.051347937434912,0.091273717582226,0.004264376126230,-0.116109445691109,-0.103507220745087,-0.108895339071751,-0.082746036350727,0.031096192076802,-0.060351513326168,-0.055284515023232,0.065878637135029,-0.335833966732025,-0.135034680366516,-0.052163477987051,-0.246541827917099) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.179059997200966,0.085499137639999,0.129517421126366,-0.493936359882355,0.234970912337303,-0.099473133683205,0.055063366889954,-0.526596426963806,-0.150023072957993,-0.044924370944500,-0.000260005501332,-0.071028389036655,0.173066392540932,0.120717898011208,-0.055917438119650,-0.208592787384987) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.153580307960510,0.100437030196190,0.014788765460253,0.056806910783052,0.010351034812629,0.116175778210163,-0.020152833312750,-0.044494859874249,-0.174704357981682,0.074110560119152,-0.063812002539635,-0.028228063136339,0.037559371441603,-0.065015301108360,-0.074104368686676,0.217807754874229) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.204183191061020,-0.032079730182886,-0.001030519255437,-0.229314550757408) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(-0.432979404926300,0.002610416384414,0.114511273801327,-0.104260101914406);
res += mat4(0.031796634197235,0.126485928893089,-0.084611877799034,0.126642510294914,-0.089113034307957,0.259154677391052,-0.065673239529133,0.055603820830584,0.167000472545624,-0.069156140089035,0.063887998461723,0.010761034674942,0.008440534584224,0.073262222111225,-0.038433268666267,-0.058397922664881) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.084378473460674,0.116328820586205,-0.036144796758890,-0.041121795773506,-0.108184352517128,-0.116552792489529,0.240072607994080,0.007942164316773,-0.142446935176849,-0.025130754336715,-0.014531346037984,-0.108661182224751,-0.077348381280899,0.157679766416550,-0.060711100697517,0.030141877010465) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.123547829687595,-0.080360613763332,0.096091262996197,0.015714153647423,-0.166568234562874,-0.042147807776928,-0.016090514138341,-0.091321304440498,-0.002226116135716,0.047535695135593,0.045970365405083,0.033034823834896,0.017777765169740,0.223597571253777,-0.038989473134279,0.148315846920013) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.047163136303425,-0.062015745788813,0.044543214142323,0.062066826969385,-0.168056279420853,0.020742539316416,0.063792444765568,0.019103040918708,0.136793419718742,-0.016856692731380,-0.184299692511559,0.240094915032387,-0.073991253972054,-0.136264413595200,-0.044121485203505,-0.114471368491650) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.024783404543996,-0.013951683416963,0.070239424705505,-0.031248383224010,-0.242744967341423,0.045718308538198,0.226927787065506,-0.005918571259826,-0.116169273853302,-0.146454140543938,0.117630086839199,0.024229433387518,-0.043950814753771,0.174388393759727,-0.133898124098778,0.108121991157532) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.089027568697929,0.096761383116245,-0.050427496433258,-0.055108416825533,-0.122324243187904,-0.115801483392715,-0.035281445831060,0.034226458519697,0.009390546008945,0.167029127478600,0.053228352218866,-0.051471535116434,-0.091437309980392,0.146661579608917,0.257270157337189,0.282610386610031) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.072244964540005,0.139611497521400,0.112430155277252,0.122019179165363,-0.058522157371044,-0.064732126891613,-0.066354393959045,0.077850148081779,0.206596836447716,-0.099340371787548,0.333455502986908,-0.156052246689796,0.122649565339088,0.034589193761349,-0.055030368268490,-0.001498447963968) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.060781665146351,-0.079441867768764,0.009918792173266,-0.055603645741940,-0.213455334305763,0.075572870671749,-0.179715558886528,-0.046967927366495,0.004639525897801,-0.037907790392637,0.099175512790680,0.008110967464745,0.026289792731404,0.007116981316358,-0.186794728040695,-0.058403115719557) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.078111477196217,0.024907093495131,0.033746354281902,0.069332614541054,-0.055466338992119,-0.080749340355396,-0.152678072452545,-0.034472368657589,0.092094928026199,0.013928719796240,0.086898908019066,-0.016509165987372,-0.051519781351089,-0.026464529335499,-0.046417847275734,-0.020600410178304) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.087374746799469,0.033693049103022,0.010467440821230,-0.046177458018064,-0.040641698986292,-0.119017817080021,-0.025826003402472,0.022818945348263,-0.088391020894051,-0.223096027970314,0.179574087262154,0.035449028015137,-0.034933354705572,0.134713977575302,-0.093039527535439,-0.012452459894121) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.250002503395081,0.150336071848869,-0.187980666756630,0.121722608804703,-0.061798613518476,-0.008115649223328,-0.235337793827057,-0.039626140147448,-0.114093594253063,-0.169269680976868,0.134853780269623,-0.009643974713981,-0.010241602547467,-0.186170354485512,-0.109851457178593,0.012283304706216) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.067553341388702,0.051686085760593,-0.183135360479355,-0.072834499180317,-0.178061455488205,-0.196277827024460,-0.478286266326904,0.004440901335329,-0.019719235599041,0.143789455294609,0.029433520510793,0.013194165192544,0.004773129709065,-0.067542493343353,-0.145047679543495,-0.076796099543571) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.021165149286389,0.046825237572193,-0.004254215862602,-0.071045354008675,0.201334685087204,-0.015516353771091,-0.081428207457066,-0.052952401340008,-0.046348161995411,-0.023945897817612,0.070084951817989,0.019947012886405,0.019386697560549,-0.047948319464922,-0.005613105371594,-0.076161980628967) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.345175176858902,-0.075063258409500,-0.034156706184149,0.301180690526962,0.066068664193153,-0.083957545459270,0.017776859924197,0.047613188624382,-0.217012226581573,0.046321887522936,0.107828892767429,-0.030928824096918,0.073648676276207,-0.044834304600954,0.089669644832611,-0.142901659011841) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.076530411839485,0.010747795924544,-0.044923488050699,0.215591058135033,0.226203739643097,0.032670542597771,-0.048636153340340,0.101376533508301,0.047191306948662,0.098563328385353,0.041868947446346,0.092609688639641,0.006455823779106,0.141216799616814,-0.020229274407029,0.013976955786347) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.039776314049959,-0.018113421276212,-0.058042321354151,-0.147001653909683,-0.047624118626118,0.080813877284527,0.024845903739333,-0.000686257786583,-0.083113253116608,-0.017687132582068,0.035778515040874,0.172215819358826,0.020955745130777,-0.074337460100651,-0.010702205821872,0.009126381017268) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.045913755893707,0.222025290131569,-0.471347033977509,-0.035019781440496,-0.122719138860703,-0.059763696044683,0.037600237876177,-0.013173419982195,-0.025528794154525,0.057472553104162,-0.193768352270126,0.116131201386452,0.037263911217451,0.010106693021953,0.063909359276295,0.088148988783360) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.038292173296213,0.154693484306335,0.005602671299130,-0.099714510142803,-0.047213196754456,0.074621140956879,0.104838907718658,0.096034847199917,-0.111576803028584,0.091406077146530,-0.120996050536633,-0.023358235135674,-0.071477845311165,-0.046101462095976,0.098632723093033,0.083546474575996) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.080850526690483,-0.180676072835922,-0.062884993851185,-0.052448362112045,0.011411617510021,0.127906605601311,-0.158187612891197,-0.025384251028299,0.095260016620159,0.210708007216454,-0.128717839717865,0.149228766560555,-0.111368373036385,0.163369342684746,0.000052995223086,-0.149549901485443) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.055002618581057,-0.237325072288513,0.066950574517250,-0.006328840274364,0.023248203098774,-0.004942867904902,-0.171270266175270,-0.053452722728252,-0.241081103682518,0.005462098866701,0.073729887604713,-0.188428297638893,0.129122868180275,0.092677615582943,0.047693584114313,-0.174179986119270) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.116853944957256,0.127561733126640,-0.023764831945300,0.016966508701444,-0.119452692568302,-0.000443904078566,-0.013737226836383,-0.007605771534145,0.052900526672602,0.087864220142365,-0.044805590063334,0.096502423286438,-0.148494422435760,0.055233068764210,0.030420502647758,0.407544523477554) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.031903766095638,0.241773515939713,-0.095387257635593,0.089673608541489,-0.064104638993740,0.150698348879814,0.054535612463951,-0.132191494107246,-0.081645749509335,-0.175805747509003,0.116705618798733,-0.190906003117561,0.031137308105826,0.099352091550827,-0.058040261268616,-0.061540052294731) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.005046283826232,0.046697948127985,-0.111090369522572,0.072157077491283,0.076057516038418,-0.088256374001503,-0.004879271611571,0.092159539461136,-0.161743313074112,0.135279804468155,0.101463936269283,0.036592964082956,-0.267171859741211,0.126690059900284,0.185634344816208,-0.042847692966461) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.012967236340046,-0.041035242378712,-0.131927490234375,-0.043551705777645,-0.087869137525558,-0.042775120586157,0.022261530160904,0.018464971333742,0.066478438675404,0.030854115262628,-0.066405020654202,0.124320335686207,-0.100025609135628,-0.127039611339569,-0.073980495333672,-0.033569861203432) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.029593581333756,0.212491869926453,-0.112362325191498,0.006007302552462,0.009849267080426,0.020951569080353,0.007351147010922,-0.021108882501721,0.154323607683182,0.032618887722492,0.029075840488076,-0.028575472533703,0.101117886602879,-0.071309603750706,-0.117587782442570,-0.110350117087364) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.062651090323925,-0.162056326866150,0.647421061992645,0.173294395208359,0.042521204799414,-0.081559456884861,-0.136902570724487,-0.037808921188116,-0.106977015733719,0.025259394198656,-0.092354305088520,0.132968768477440,0.007317413575947,0.078820079565048,-0.084872797131538,0.003222442930564) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.022564636543393,-0.039823248982430,0.088954471051693,0.234890297055244,0.032520376145840,-0.019471898674965,-0.090100750327110,-0.049069955945015,0.224510386586189,-0.076564826071262,0.002657204633579,-0.013390129432082,0.264255732297897,-0.177004635334015,-0.123398676514626,-0.025353090837598) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.122589573264122,0.042670544236898,0.025917837396264,0.067527182400227,-0.019595481455326,0.013854248449206,-0.039493072777987,-0.047481298446655,-0.125342950224876,0.170358076691628,0.113579191267490,-0.069209426641464,-0.024239702150226,0.206604078412056,-0.032757543027401,0.124052211642265) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.127498164772987,0.013306370936334,-0.005984215997159,0.183591663837433,-0.009150042198598,0.037165362387896,-0.127413690090179,-0.161078572273254,-0.064882412552834,0.070382975041866,-0.029395861551166,-0.125631049275398,0.058118548244238,0.083780184388161,-0.185393616557121,-0.191250547766685) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.006095234770328,-0.013576637022197,-0.036061711609364,0.006435952149332,-0.071844831109047,0.004645200911909,0.031374797224998,0.046679727733135,0.011943823657930,-0.212282657623291,-0.041820999234915,-0.066219381988049,-0.198225632309914,-0.257095754146576,-0.162105023860931,0.109480611979961) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.054404001682997,0.089130856096745,-0.096160978078842,0.162664011120796,0.043199591338634,0.003568180603907,0.050369694828987,-0.267450422048569,0.052515313029289,0.260978788137436,0.091111704707146,0.094171978533268,-0.150115877389908,-0.101626910269260,0.047509573400021,-0.089262641966343) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.028473403304815,-0.026711693033576,-0.033598382025957,-0.138938561081886,-0.155491486191750,0.046196319162846,0.102268896996975,-0.294967502355576,0.262327015399933,0.030096488073468,-0.009074572473764,0.015151206403971,-0.281206220388412,-0.018483148887753,0.126357242465019,-0.063757538795471) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.009008705615997,0.040133420377970,-0.034811131656170,-0.040184099227190,-0.094647265970707,0.103202670812607,0.044157966971397,-0.124620482325554,0.044018648564816,-0.299865216016769,-0.103641293942928,-0.081424534320831,-0.074426643550396,-0.012657308019698,0.124637536704540,-0.418408930301666) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.107461877167225,-0.098873645067215,0.112730294466019,-0.103339962661266,0.022051772102714,-0.007579936180264,0.109703011810780,-0.104866601526737,-0.345700800418854,0.314591854810715,0.065159954130650,0.120778828859329,0.147178620100021,0.024652823805809,0.096776552498341,0.167515173554420) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.059835247695446,-0.084065102040768,0.189044922590256,-0.088872730731964,-0.057376932352781,0.043639514595270,0.346572607755661,-0.289405554533005,-0.270474612712860,0.158558338880539,-0.217512980103493,-0.073380015790462,0.111860916018486,0.048426434397697,-0.149565517902374,-0.108001746237278) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.003999977838248,-0.005668331868947,-0.047893460839987,0.074930578470230,0.007171842735261,0.173688516020775,0.321857035160065,-0.089249521493912,0.012449625879526,-0.158527731895447,-0.191886991262436,-0.041213791817427,0.248952463269234,0.218588337302208,-0.017676120623946,0.066727541387081) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.270422458648682,-0.017868839204311,-0.015073804184794,0.092203162610531,0.008204934187233,0.089233554899693,0.017824189737439,0.003228372894228,0.166000634431839,0.162390723824501,0.101710155606270,-0.081741020083427,-0.033492069691420,0.070371523499489,0.066982403397560,-0.060347422957420) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.339983373880386,0.296404302120209,-0.138446643948555,-0.019087279215455,-0.045512747019529,-0.086417950689793,-0.046417169272900,0.072539769113064,-0.073394395411015,-0.163447141647339,-0.049635678529739,-0.028308389708400,-0.015277800150216,-0.071300089359283,0.029965050518513,-0.032745204865932) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.230553597211838,-0.203840255737305,0.014966815710068,-0.022242683917284,-0.029764382168651,0.134638592600822,-0.046951100230217,-0.082574121654034,-0.117087632417679,-0.102832145988941,0.080981910228729,0.082810118794441,0.090729318559170,-0.017160920426250,-0.042156122624874,0.013802724890411) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.125689700245857,-0.146215856075287,-0.229014590382576,-0.013577639125288,0.108849518001080,-0.075972266495228,-0.064861550927162,0.064999908208847,0.200077235698700,0.197469353675842,0.026778267696500,-0.086814880371094,-0.208476215600967,0.043417207896709,0.049620494246483,-0.044242441654205) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.312757253646851,-0.137980997562408,0.290122002363205,-0.211806476116180,0.137639611959457,-0.019458834081888,-0.133041977882385,0.125495597720146,-0.417316764593124,0.141651883721352,0.076173976063728,-0.133163511753082,0.023289084434509,0.083780989050865,0.025622313842177,0.068504244089127) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.061184309422970,0.104122906923294,0.140606924891472,-0.105852484703064,-0.123711928725243,-0.146662205457687,0.076433472335339,-0.089104853570461,0.196148693561554,-0.048685863614082,-0.230007931590080,0.198000222444534,0.026414724066854,0.082346633076668,0.063117735087872,-0.009181253612041) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.118163950741291,0.104470908641815,0.199732065200806,0.086098149418831,-0.103238619863987,-0.027839703485370,-0.025507669895887,-0.062030199915171,0.112086690962315,-0.076756857335567,0.074374377727509,0.066761553287506,-0.031238013878465,-0.038889743387699,0.010236303322017,0.056739270687103) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.379255503416061,0.234182402491570,-0.137828722596169,0.077473975718021,-0.188979804515839,0.119625270366669,0.061834845691919,-0.061101533472538,0.057805143296719,0.030356362462044,-0.112998783588409,0.268548756837845,0.245708063244820,0.048614904284477,0.035737574100494,-0.038040507584810) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.045483365654945,-0.238259702920914,-0.117031559348106,0.151756986975670,0.130379125475883,-0.060212898999453,0.025735611096025,0.003395133651793,-0.120238251984119,-0.126749947667122,-0.020374294370413,-0.138243883848190,0.114218361675739,0.003873792476952,-0.003824430052191,0.015411202795804) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.133367687463760,0.028353318572044,0.177520573139191,0.042564693838358,0.213655769824982,0.277690112590790,0.016504641622305,0.159632503986359,0.041775286197662,0.138916760683060,-0.304280012845993,-0.190793260931969,0.276973634958267,0.077330261468887,0.073208019137383,0.173324078321457) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.043077297508717,-0.030260359868407,0.134809136390686,-0.042089845985174,-0.152119517326355,-0.124763637781143,-0.066947683691978,0.279047489166260,-0.013972940854728,-0.240650802850723,0.295313596725464,0.139434367418289,-0.390688180923462,-0.002572359750047,-0.260351955890656,0.316953331232071) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.007508702576160,-0.076706357300282,0.030338168144226,0.022409509867430,-0.145398393273354,-0.031012192368507,-0.025758339092135,0.039935909211636,-0.022294733673334,0.031298346817493,0.196585461497307,0.151750728487968,0.370726704597473,0.071335300803185,-0.055389843881130,-0.017654748633504) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.110820725560188,-0.045305352658033,-0.093702800571918,0.201927378773689,-0.165855452418327,-0.052903015166521,0.096308395266533,-0.074314080178738,0.076178021728992,-0.320700556039810,0.007999206893146,-0.180759802460670,-0.038009356707335,-0.099029481410980,0.203739941120148,-0.364035576581955) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.083450928330421,-0.042937431484461,0.106598615646362,-0.327628016471863,0.319425165653229,0.165400549769402,-0.192076951265335,-0.098595768213272,0.051896348595619,-0.248976543545723,-0.333775281906128,-0.050058830529451,-0.138073757290840,-0.052968360483646,-0.188899323344231,0.345286667346954) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.170481875538826,-0.087981678545475,-0.087669759988785,-0.073146715760231,0.025563593953848,-0.203453496098518,-0.213315740227699,0.051070310175419,0.056217689067125,-0.194377660751343,-0.172502934932709,-0.085553176701069,-0.205204576253891,0.250982701778412,0.125999152660370,-0.057429742068052) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.016601506620646,0.076807864010334,-0.006293192040175,-0.006177121773362,0.033715412020683,0.170236065983772,0.145604282617569,-0.011886386200786,0.149954378604889,0.026457928121090,0.043145880103111,-0.051321446895599,0.115806005895138,0.021633598953485,-0.161633774638176,-0.023471344262362) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.136811196804047,-0.276934832334518,-0.166602656245232,-0.093491792678833,-0.193449974060059,-0.267161995172501,0.178776308894157,-0.072828032076359,0.115392066538334,-0.053266949951649,0.062188677489758,0.042266599833965,0.146047651767731,0.020407279953361,0.230553969740868,-0.232249245047569) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.179837986826897,-0.156992718577385,-0.037979487329721,0.027803488075733,-0.035831063985825,0.075436085462570,0.091280475258827,-0.000360998325050,0.145276471972466,0.075654089450836,0.045965515077114,0.040567301213741,0.019278481602669,-0.221965894103050,-0.031486198306084,0.047528248280287) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.017354203388095,0.739563703536987,0.063994519412518,0.771741926670074) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(0.017246987670660,-0.055814873427153,-0.022758014500141,-0.138131350278854);
res += mat4(-0.134566977620125,0.053616307675838,-0.078264936804771,-0.016663666814566,-0.018214873969555,0.065410241484642,0.025902180001140,0.127897650003433,0.175273612141609,-0.060547161847353,-0.177664488554001,0.196353942155838,-0.091858036816120,-0.152470216155052,0.017987659201026,0.058493837714195) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.048904936760664,0.065508171916008,-0.082696311175823,-0.112144671380520,0.086720302700996,0.116980776190758,-0.037735980004072,-0.215684816241264,-0.126721918582916,0.003700855886564,-0.115451611578465,0.054959513247013,-0.100271113216877,-0.245398879051208,0.092290654778481,0.176282227039337) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.100738033652306,0.012986386194825,-0.065698653459549,-0.090848028659821,-0.083658605813980,-0.032427448779345,0.029549008235335,0.108836635947227,0.107356905937195,-0.043616428971291,0.035486649721861,-0.129239886999130,0.149794146418571,-0.002360674552619,0.066815733909607,-0.053759135305882) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.090434223413467,-0.046275157481432,0.044801350682974,-0.032380469143391,0.162697225809097,-0.029314368963242,0.041518341749907,-0.181730613112450,-0.028183115646243,-0.029767068102956,0.454754739999771,-0.095172628760338,-0.046408489346504,-0.141684159636497,0.051283419132233,0.216952010989189) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.283329695463181,-0.049432072788477,0.141443312168121,-0.222462207078934,-0.118441618978977,-0.032443419098854,0.012781454250216,-0.019869053736329,-0.194393873214722,0.170402348041534,-0.011538685299456,0.074866659939289,-0.099901929497719,-0.125604435801506,-0.083333492279053,-0.220720857381821) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.183979079127312,0.002256744308397,-0.038782220333815,-0.011271174997091,-0.071563594043255,-0.045396089553833,-0.041442342102528,0.138851910829544,0.149216875433922,-0.225666224956512,-0.010974297299981,-0.098494663834572,-0.064450643956661,-0.248054891824722,0.107362791895866,-0.089142709970474) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.168318405747414,0.062415171414614,-0.027633458375931,-0.002143386751413,-0.010826818645000,0.043345995247364,-0.008174289017916,-0.080781765282154,0.035997252911329,-0.031437311321497,0.311542153358459,-0.034236732870340,-0.059022098779678,0.050135523080826,0.011223573237658,-0.077513769268990) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.187674105167389,0.112096495926380,0.198484316468239,-0.177453190088272,-0.025680312886834,0.305172026157379,0.039582207798958,0.199462115764618,-0.043329868465662,-0.023539248853922,0.105391457676888,0.108178764581680,0.101787924766541,-0.112047307193279,-0.008449087850749,-0.078767716884613) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.053123090416193,0.019062006846070,0.050340760499239,-0.042969100177288,0.165154099464417,0.104740492999554,-0.064007133245468,-0.037561789155006,-0.029651965945959,-0.117325633764267,-0.039659317582846,-0.001320793642662,-0.083873830735683,0.047985106706619,-0.040427409112453,0.062313679605722) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.174947381019592,-0.044953830540180,0.154035776853561,-0.189641952514648,-0.069788321852684,-0.021880488842726,-0.218989402055740,0.203555211424828,0.022335249930620,-0.133006483316422,-0.079560466110706,-0.001408661017194,0.179114818572998,0.080944448709488,-0.235209882259369,-0.093952797353268) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.057749398052692,0.075121149420738,0.050250604748726,0.067260220646858,0.040916509926319,-0.094039626419544,0.073837392032146,-0.065412208437920,-0.150383383035660,-0.103420168161392,-0.081435143947601,0.107387870550156,-0.026375237852335,-0.150395572185516,-0.028899008408189,0.118658557534218) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.017923256382346,-0.133611500263214,0.185857996344566,0.190770164132118,0.231055319309235,0.116273529827595,0.006438304204494,0.169704109430313,0.069722212851048,-0.109978035092354,-0.025541648268700,-0.036222890019417,-0.100617669522762,0.033377736806870,-0.007664608769119,0.046819537878036) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.249255940318108,-0.021684166043997,0.116560421884060,0.018849126994610,0.127078697085381,-0.108356781303883,-0.087507203221321,-0.013915850780904,-0.028213417157531,-0.062633641064167,-0.066585265100002,0.054085675626993,0.078649833798409,-0.047940719872713,0.051380824297667,0.098748810589314) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.453185081481934,-0.048720061779022,-0.228171214461327,0.391438633203506,0.180392593145370,-0.149104505777359,-0.167886599898338,-0.102206617593765,-0.079200513660908,-0.067178435623646,-0.046526029706001,0.094086110591888,0.025921389460564,0.001443749410100,0.030012970790267,-0.123585753142834) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.154919847846031,-0.119683958590031,0.091135844588280,0.116315461695194,-0.092882163822651,-0.053621761500835,-0.183698296546936,0.139690384268761,-0.119928054511547,-0.030979670584202,-0.033532492816448,0.020151471719146,-0.016094068065286,0.053905840963125,-0.032289762049913,0.051048524677753) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.096594870090485,-0.070574589073658,0.010421741753817,0.116789884865284,-0.034300744533539,-0.077264636754990,-0.027605241164565,-0.026473613455892,-0.180765300989151,0.029085930436850,-0.068485781550407,0.050023786723614,-0.128774300217628,0.065853677690029,0.068036228418350,0.224114522337914) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.120220623910427,0.177325397729874,-0.069838158786297,0.348935186862946,0.013928318396211,-0.021592738106847,-0.058836735785007,-0.013960331678391,-0.090697973966599,0.229009032249451,-0.006250442937016,0.127556622028351,-0.142816901206970,0.007382649928331,0.005747698713094,0.056171607226133) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.124051876366138,-0.084988825023174,0.089476220309734,-0.231445252895355,0.072856351733208,0.102293826639652,-0.123426273465157,0.026373380795121,0.116629309952259,0.018756594508886,0.101518809795380,-0.195322185754776,0.228199079632759,-0.156490072607994,0.000016375919586,-0.221639975905418) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.040932636708021,0.046597484499216,-0.093891069293022,-0.040754903107882,0.042470727115870,0.101673297584057,-0.017670182511210,-0.043026879429817,0.071377232670784,-0.050193611532450,0.003129338379949,-0.215714514255524,0.008934428915381,0.080396331846714,-0.090622074902058,-0.077616155147552) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.023326192051172,-0.110008746385574,-0.075454793870449,0.078813724219799,0.030028577893972,0.005384900607169,-0.003858397714794,-0.029774880036712,-0.009511010721326,0.060180056840181,-0.059445701539516,0.029751552268863,0.173752978444099,-0.009927190840244,-0.017089352011681,-0.054375641047955) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.034075628966093,0.082557223737240,-0.069586254656315,-0.112596057355404,0.110573031008244,0.091649457812309,-0.034588895738125,-0.062457643449306,0.284473657608032,0.195707350969315,0.299885511398315,-0.063555829226971,-0.305419325828552,-0.006530073471367,-0.082404419779778,0.019170708954334) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.095023907721043,0.190389350056648,-0.214798301458359,0.256777495145798,0.000921704515349,0.070950858294964,0.101635120809078,-0.151313439011574,-0.128620252013206,-0.033431638032198,-0.050716381520033,0.047169715166092,0.023868003860116,0.206297144293785,0.139878794550896,0.017492119222879) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.272091537714005,-0.030965169891715,-0.116343647241592,-0.020575350150466,-0.180516332387924,-0.101122915744781,0.049897007644176,-0.077787302434444,-0.058581493794918,0.049616422504187,-0.162005200982094,0.097428709268570,-0.370561063289642,-0.203100278973579,-0.303150147199631,0.165672212839127) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.165605634450912,0.003179534571245,-0.001361224451102,-0.055250663310289,-0.020496411249042,-0.152922376990318,-0.021200971677899,0.108584910631180,-0.188303828239441,0.087845966219902,0.014589576981962,0.162222445011139,-0.201529935002327,0.104754358530045,-0.063251435756683,0.090904809534550) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.138201147317886,0.132325023412704,-0.104934424161911,-0.110838927328587,0.002062916522846,0.012319516390562,0.041771858930588,0.122156739234924,-0.160222351551056,-0.144379600882530,0.124722622334957,0.082201555371284,0.135149180889130,0.221188619732857,-0.038652993738651,0.066787861287594) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.215340077877045,-0.168542131781578,0.148819133639336,-0.125211372971535,-0.143937215209007,0.168863594532013,-0.011172580532730,0.122882798314095,0.191383898258209,0.048548724502325,0.091737277805805,0.002940052654594,-0.221860840916634,0.010214043781161,-0.009822544641793,0.231599584221840) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.008714863099158,0.137066632509232,0.072258599102497,0.056292805820704,0.054414592683315,-0.124413438141346,0.090346828103065,-0.026038464158773,0.122640378773212,0.037712655961514,0.078520022332668,-0.052213184535503,0.272672832012177,0.023833647370338,0.183994084596634,-0.113186225295067) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.159083560109138,0.242203220725060,0.054833214730024,-0.080937966704369,-0.064948543906212,-0.123372465372086,0.044450074434280,0.018116017803550,0.081396222114563,-0.176553368568420,0.189606413245201,0.296748459339142,0.093889817595482,0.006493762135506,0.067210100591183,-0.047055248171091) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.036323502659798,0.079921521246433,0.250673055648804,0.305242717266083,0.137207373976707,0.025994675233960,0.263085752725601,-0.086937122046947,-0.187809363007545,-0.110197670757771,-0.145544975996017,0.179228737950325,0.231267437338829,0.045581795275211,0.340613782405853,-0.210432976484299) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.020770333707333,-0.016882918775082,-0.024450063705444,0.003145543858409,0.062279250472784,0.039421748369932,0.055394172668457,0.061259798705578,0.002693159971386,0.210531592369080,-0.144352927803993,-0.105373702943325,-0.267596989870071,0.137218371033669,-0.095389015972614,0.090901806950569) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.185073554515839,0.419441312551498,0.127591222524643,-0.093454711139202,0.090920202434063,-0.010719032026827,0.025923490524292,-0.111892223358154,-0.277436971664429,0.060105998069048,-0.086542032659054,0.168100461363792,0.068742454051971,-0.138644099235535,-0.008542457595468,-0.008924433961511) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.087564513087273,-0.188289284706116,-0.044205784797668,0.005428639240563,0.051013406366110,-0.156026110053062,-0.102731846272945,-0.103408448398113,-0.319369077682495,0.137362167239189,-0.233464866876602,-0.474614500999451,-0.147945135831833,0.101097650825977,-0.093871988356113,0.090428739786148) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.021153921261430,-0.060255747288465,-0.157912909984589,0.004017097875476,-0.020063869655132,-0.063858009874821,0.116940937936306,-0.032353207468987,0.239907607436180,0.064478695392609,-0.001754313008860,-0.059347990900278,0.025267651304603,0.062518022954464,-0.068111382424831,0.018640732392669) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.045199736952782,0.023539481684566,0.067121677100658,-0.120572440326214,0.226210609078407,0.110313728451729,-0.026275739073753,0.014589093625546,0.083416804671288,-0.143402725458145,0.013691522181034,-0.042471963912249,-0.155056029558182,-0.040983106940985,0.036346033215523,0.084634549915791) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.041192043572664,0.071496412158012,0.019396895542741,-0.041472572833300,0.067744165658951,-0.087585449218750,-0.036127649247646,-0.009708032011986,0.229382410645485,-0.344985127449036,-0.144722089171410,-0.140884026885033,0.009531589224935,0.027659580111504,0.085965357720852,-0.032731208950281) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.007916375994682,0.001544448314235,-0.092309847474098,0.007068579550833,-0.080054469406605,-0.219484940171242,-0.028462857007980,-0.073501974344254,-0.026240438222885,-0.009033901616931,-0.153415992856026,0.267679244279861,-0.000472947023809,-0.077697075903416,0.091327153146267,-0.031279355287552) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.095145367085934,0.032353937625885,-0.068143188953400,0.104268975555897,-0.217773064970970,0.025388672947884,-0.141297936439514,0.142157077789307,0.352952837944031,0.048244707286358,0.072481520473957,-0.182597413659096,0.078185573220253,0.035410344600677,0.093074470758438,-0.166640028357506) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.153450384736061,0.196781486272812,0.657154917716980,-0.329772651195526,-0.047367881983519,-0.062364798039198,-0.074199490249157,0.091795876622200,0.080893278121948,0.183569580316544,-0.058278150856495,-0.050066817551851,0.164356887340546,0.111477881669998,0.069949381053448,0.063476771116257) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.014174569398165,-0.192482441663742,-0.009320340119302,0.154283732175827,0.088729456067085,-0.042977537959814,0.070341147482395,-0.084315158426762,-0.294432073831558,0.070644982159138,0.055259067565203,0.192178741097450,-0.046951882541180,-0.135783195495605,-0.029187550768256,0.052484761923552) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.244825080037117,0.156519070267677,0.071552999317646,-0.183192804455757,-0.139890789985657,-0.063521333038807,-0.019554553553462,0.030794665217400,0.015832565724850,-0.064887680113316,0.087707847356796,0.072206638753414,0.167608126997948,0.115105956792831,0.003922706004232,-0.068574227392673) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.033327739685774,-0.254473268985748,-0.381743609905243,0.031363155692816,0.102523170411587,-0.133198514580727,0.074893511831760,-0.215168714523315,-0.182540610432625,-0.202466279268265,-0.339815735816956,0.176188170909882,0.020389430224895,-0.001039450522512,0.009979634545743,-0.087059445679188) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.068480007350445,0.307631611824036,-0.167351037263870,0.277589768171310,-0.016386909410357,0.194495797157288,-0.014959375374019,0.112401619553566,-0.030354076996446,0.181699946522713,0.035739291459322,0.055203750729561,-0.030285660177469,0.034288562834263,0.037253886461258,0.016395958140492) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.058271009474993,0.034095853567123,-0.093333818018436,0.008751466870308,0.279305756092072,0.105836451053619,-0.013935199007392,-0.171806141734123,-0.029472710564733,-0.142480880022049,0.004627007991076,0.153136223554611,-0.008374062366784,-0.005529709160328,-0.049253068864346,0.013876711949706) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.237398356199265,0.173108443617821,0.164114326238632,0.363001197576523,-0.089024595916271,0.076784722507000,-0.092280864715576,0.201432466506958,-0.095555610954762,0.043658420443535,0.177290946245193,0.086649894714355,-0.279775202274323,-0.006728293839842,0.012143036350608,-0.070070400834084) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.142402917146683,-0.128745853900909,0.353792101144791,-0.230152145028114,-0.053593918681145,-0.093389384448528,0.052074868232012,-0.117262162268162,0.214555889368057,-0.029061524197459,0.097207635641098,-0.288652598857880,0.051649797707796,0.059539053589106,-0.016522318124771,-0.113165676593781) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.117477394640446,-0.027410387992859,0.087232351303101,-0.155230581760406,0.177674442529678,0.123346537351608,0.103122040629387,-0.001844651647843,0.257755517959595,0.252473711967468,-0.005374731495976,-0.190386742353439,0.173576533794403,0.019405812025070,-0.100538231432438,-0.067217528820038) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.076512426137924,-0.134250983595848,-0.086208470165730,-0.264406174421310,-0.128293171525002,-0.179295122623444,-0.255614042282104,0.131304576992989,-0.271458089351654,0.000649922178127,-0.134808793663979,0.013434821739793,-0.156363174319267,-0.230985671281815,-0.277104735374451,0.343660652637482) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.140689685940742,-0.136039793491364,-0.089751854538918,-0.147730827331543,-0.072984024882317,0.111299350857735,-0.111092343926430,0.196415290236473,0.130895942449570,0.107587330043316,-0.053127501159906,0.181670650839806,0.163652807474136,0.053747709840536,0.213627457618713,-0.144443765282631) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.361287206411362,-0.109076917171478,0.032424695789814,-0.025096315890551,-0.329232573509216,-0.258355855941772,-0.017470173537731,0.102889239788055,-0.045038715004921,-0.136863991618156,0.116742543876171,0.040558759123087,-0.424829006195068,-0.378278732299805,-0.208556950092316,0.403117477893829) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.273613482713699,-0.011786770075560,0.071304418146610,-0.131025165319443,0.040899254381657,0.096473380923271,0.289446890354156,-0.063126847147942,-0.095074199140072,0.127256527543068,0.039871979504824,0.178825184702873,-0.040810760110617,0.392378926277161,0.108981154859066,-0.059204313904047) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.238328501582146,0.149934187531471,-0.194016128778458,-0.140751346945763,0.057653516530991,0.164882943034172,0.193077892065048,-0.015200967900455,0.097881212830544,0.173152282834053,0.081205889582634,-0.091642297804356,0.322876870632172,-0.297936379909515,-0.114312365651131,-0.253165334463120) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.170300275087357,-0.011946118436754,-0.106319211423397,-0.293288022279739,0.099023595452309,0.303135752677917,0.064758695662022,-0.249960139393806,-0.065384157001972,0.081239312887192,0.187736555933952,0.006693237461150,-0.014416964724660,0.096919223666191,0.023601597175002,-0.035606879740953) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.054740127176046,-0.178234040737152,0.205074876546860,-0.266421258449554,0.317307740449905,-0.111586086452007,-0.229982152581215,-0.165590256452560,0.069798372685909,-0.182350322604179,0.174852594733238,0.041123822331429,0.013266534544528,-0.064525686204433,0.165123164653778,-0.102557457983494) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.329833328723907,0.174427554011345,-0.051464673131704,-0.028077322989702,-0.089608587324619,-0.046096604317427,-0.048158533871174,0.025950662791729,-0.091210402548313,-0.083931289613247,0.229498535394669,-0.031216593459249,-0.112366296350956,-0.064202696084976,0.142743796110153,0.084969982504845) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.399857729673386,0.936605334281921,0.918295264244080,-0.181911647319794) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(-0.089881107211113,0.168203070759773,0.153703510761261,-0.019957253709435);
res += mat4(0.141470581293106,0.026067517697811,-0.199407696723938,-0.004218188114464,0.009267183952034,0.151210352778435,-0.072801038622856,0.155835255980492,-0.044069200754166,0.061137937009335,0.014245706610382,-0.026555705815554,0.026018090546131,0.052821025252342,-0.012438382953405,0.038277477025986) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.215775623917580,-0.182558268308640,0.075005322694778,-0.106270611286163,-0.097211390733719,0.060377404093742,0.007547513116151,0.010149881243706,-0.024823378771544,-0.191921144723892,-0.103034637868404,-0.129331171512604,-0.084303081035614,-0.058456372469664,0.171961560845375,0.091024823486805) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.096096657216549,0.096272923052311,-0.120726443827152,-0.137440904974937,0.071531333029270,0.182744309306145,-0.086394853889942,0.153555855154991,0.059557467699051,0.194543480873108,-0.136834517121315,-0.053909562528133,-0.014915561303496,-0.045414619147778,0.021017722785473,0.163731202483177) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.248632073402405,-0.035960834473372,-0.491133481264114,0.132834970951080,-0.011921630240977,0.037336252629757,0.037243396043777,-0.064865611493587,0.104605875909328,-0.125978782773018,-0.032007165253162,-0.137975096702576,-0.124790512025356,-0.054544478654861,0.084570333361626,0.021712640300393) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.325559556484222,-0.120164982974529,0.046297729015350,0.093287825584412,-0.075342945754528,0.069293767213821,-0.086974494159222,-0.226399794220924,0.014796172268689,-0.140939846634865,-0.139296531677246,0.016332188621163,-0.044461362063885,0.009828322567046,0.072579272091389,0.186313420534134) * MODEL1_texOff(vec2(0,0));
res += mat4(0.040266752243042,0.092116214334965,-0.177504509687424,-0.070904210209846,-0.089995190501213,0.088204085826874,-0.084989413619041,-0.186124145984650,-0.004140125121921,0.126918584108353,-0.065486490726471,0.066563777625561,0.097037591040134,-0.395073115825653,0.108960628509521,0.302558273077011) * MODEL1_texOff(vec2(0,1));
res += mat4(0.047060620039701,-0.269534319639206,-0.135831087827682,-0.157793641090393,0.006235331296921,0.015715723857284,-0.050842516124249,-0.024425314739347,0.077091008424759,-0.348021715879440,-0.016545435413718,0.052423544228077,-0.009034682996571,-0.107666276395321,0.060943868011236,-0.047041419893503) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.045160289853811,0.026147985830903,-0.077435359358788,-0.097314491868019,-0.176190078258514,0.014856014400721,0.073406144976616,0.034857932478189,0.044081971049309,-0.038156043738127,-0.116549812257290,0.052658304572105,0.003563334932551,0.181606903672218,0.032542720437050,-0.164438903331757) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.090573921799660,-0.142927780747414,0.024635115638375,0.127134710550308,0.000577137980144,0.077079743146896,0.002867025788873,0.044759310781956,-0.076319247484207,0.102960377931595,-0.078514099121094,-0.062698304653168,0.038976073265076,-0.096572674810886,-0.042330425232649,-0.379459142684937) * MODEL1_texOff(vec2(1,1));
res += mat4(0.201112031936646,-0.203631043434143,-0.149399042129517,-0.329065918922424,-0.020192408934236,0.079952508211136,0.055078662931919,0.004606895614415,-0.076167933642864,0.028167651966214,0.073887817561626,-0.078457318246365,0.108774162828922,-0.044244661927223,-0.058980286121368,-0.028574431315064) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.065161399543285,-0.283486306667328,0.089306265115738,-0.072110123932362,-0.056040249764919,-0.036493662744761,-0.000165670877323,-0.040352728217840,-0.067755796015263,0.061140745878220,-0.027769271284342,0.109889939427376,0.268276751041412,0.063109755516052,-0.106340914964676,0.081088230013847) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.060172516852617,0.093102522194386,0.055896818637848,0.067304685711861,0.023302197456360,0.052232395857573,0.015381301753223,-0.024854090064764,0.021923715248704,-0.211604177951813,0.038509409874678,-0.013739740476012,-0.064860261976719,0.136898130178452,0.069980435073376,-0.036752372980118) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.682886004447937,0.250118196010590,-0.815432608127594,0.160590037703514,-0.070717513561249,0.082285292446613,0.061227228492498,-0.131221085786819,0.320757418870926,-0.017972363159060,-0.253222078084946,0.190647080540657,0.035249792039394,0.112253740429878,0.013876658864319,0.028955832123756) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.002431064378470,0.010903377085924,0.137501865625381,0.147993519902229,0.054806787520647,0.144631981849670,-0.010668290778995,0.025962688028812,-0.175142496824265,-0.188782170414925,0.079274021089077,0.043682232499123,0.121130935847759,-0.020264446735382,-0.238993778824806,-0.024263355880976) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.041753415018320,-0.016458103433251,-0.013099945150316,0.191102400422096,-0.010149722918868,-0.111536748707294,-0.040794897824526,0.032252695411444,-0.168195560574532,-0.168047547340393,0.166573092341423,-0.072876036167145,-0.173965841531754,0.005010642111301,0.251720398664474,-0.160715520381927) * MODEL2_texOff(vec2(0,1));
res += mat4(0.202358826994896,0.131687119603157,-0.144327357411385,0.171133518218994,-0.187752559781075,0.177956745028496,0.260570555925369,-0.133233636617661,0.024900307878852,-0.316903650760651,0.019621033221483,0.064008921384811,0.093834705650806,-0.053503572940826,-0.085857138037682,-0.074453324079514) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.058057777583599,-0.059430684894323,0.166386678814888,0.038291271775961,0.101105064153671,-0.067439980804920,-0.013101972639561,0.019185921177268,-0.011046572588384,0.107405774295330,-0.118820779025555,-0.042521663010120,0.251494199037552,0.016835747286677,-0.144076719880104,-0.058962147682905) * MODEL2_texOff(vec2(1,0));
res += mat4(0.060352478176355,0.084625020623207,-0.009004367515445,-0.191652834415436,0.044515728950500,-0.034986983984709,-0.143514826893806,-0.035956796258688,-0.054467964917421,-0.039066232740879,0.161652937531471,-0.112140916287899,-0.054027471691370,0.033745508641005,-0.032167870551348,0.018157187849283) * MODEL2_texOff(vec2(1,1));
res += mat4(0.045639812946320,-0.242544010281563,-0.163437873125076,-0.153346240520477,0.074296273291111,0.137041404843330,-0.063496582210064,0.157023847103119,-0.121345572173595,0.042877253144979,0.135481998324394,0.117256455123425,-0.062803685665131,-0.110412977635860,0.000776924658567,-0.152416884899139) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.065349303185940,-0.488934367895126,-0.079874634742737,-0.149112030863762,0.056167662143707,-0.178583785891533,-0.121418826282024,0.050234980881214,-0.078131467103958,0.070169903337955,0.134725347161293,-0.073264040052891,-0.066922709345818,-0.051992993801832,0.147153377532959,-0.045725289732218) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.029196061193943,-0.383173078298569,0.030752163380384,-0.064532309770584,0.099640779197216,-0.111729308962822,-0.008575695566833,-0.052455976605415,0.116027168929577,-0.018717918545008,-0.092541031539440,-0.090092949569225,-0.072714433073997,-0.021258112043142,0.057516217231750,-0.061408706009388) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.019206186756492,-0.378973275423050,-0.171503096818924,-0.081319071352482,-0.022014155983925,-0.039755523204803,0.031009186059237,-0.149103581905365,-0.179830342531204,-0.011347093619406,0.224086329340935,-0.123930692672729,0.232780575752258,0.030987784266472,-0.365344554185867,-0.006415582727641) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.093522854149342,-0.804306328296661,-0.130133956670761,0.154221683740616,0.179987072944641,0.011860615573823,-0.152964696288109,-0.191706612706184,0.005641317926347,0.089657925069332,-0.014224283397198,-0.303302973508835,-0.042632862925529,-0.092341952025890,0.222932696342468,0.213518276810646) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.004036784637719,-0.515939533710480,-0.023879408836365,-0.019201923161745,-0.013156021945179,-0.052085913717747,0.023568861186504,0.009059593081474,0.015457672998309,0.062627099454403,-0.114173308014870,-0.008567659184337,-0.093569770455360,-0.073139481246471,0.164359092712402,0.063626065850258) * MODEL3_texOff(vec2(0,1));
res += mat4(0.017585162073374,-0.501648485660553,-0.072452954947948,-0.068402469158173,0.107049264013767,0.050642523914576,0.095764845609665,0.083085529506207,-0.159918397665024,-0.047483973205090,0.152802020311356,-0.052940823137760,-0.146432995796204,0.008289493620396,-0.027397219091654,-0.021851947531104) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.120529547333717,-0.589977145195007,-0.163728311657906,-0.012488279491663,0.026181459426880,0.122147418558598,-0.086209900677204,0.090298064053059,-0.060829110443592,0.158126071095467,-0.070168063044548,0.136518359184265,-0.119950845837593,-0.011488337069750,0.166950240731239,-0.035561032593250) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.048461053520441,-0.331612139940262,-0.029404016211629,-0.148940935730934,0.004543832503259,-0.008944411762059,-0.032565742731094,-0.009817085228860,0.011812760494649,-0.012356665916741,-0.055343907326460,0.153137847781181,-0.031164746731520,0.186233505606651,0.060517277568579,0.034075632691383) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.251678407192230,-0.073681905865669,0.261289209127426,-0.086658447980881,-0.116383448243141,-0.074907638132572,0.221687451004982,-0.094075441360474,0.047476302832365,-0.003324962919578,0.016719732433558,-0.024812685325742,0.012921548448503,0.024581363424659,-0.205999895930290,0.021027980372310) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.068912200629711,0.133370324969292,-0.094382524490356,0.022507693618536,0.056617472320795,0.116375096142292,-0.054741475731134,-0.042748223990202,0.006944520398974,-0.073173500597477,0.009270348586142,-0.003229457885027,0.083747290074825,-0.124150060117245,0.122137553989887,-0.078251063823700) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.033129151910543,0.038766842335463,-0.120310775935650,0.116324946284294,0.071239672601223,-0.162355035543442,0.048770379275084,0.103977687656879,0.026671443134546,-0.197783723473549,0.024629902094603,-0.045198466628790,0.051229558885098,-0.109968841075897,0.034134220331907,-0.102964393794537) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.108498677611351,-0.094388924539089,0.087454743683338,0.133273661136627,-0.271731168031693,-0.149019256234169,0.434101194143295,0.001135185244493,0.189753577113152,-0.040770146995783,-0.137109920382500,0.045510046184063,0.073313288390636,-0.235419049859047,-0.054060332477093,-0.098121844232082) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.042642038315535,0.026337586343288,0.108644597232342,0.090758740901947,0.015862340107560,0.045533377677202,-0.131426513195038,-0.142591968178749,0.020703565329313,0.118527181446552,-0.029211249202490,-0.065966442227364,0.046661745756865,-0.024590769782662,-0.007516599725932,-0.716772675514221) * MODEL4_texOff(vec2(0,0));
res += mat4(0.049571484327316,0.021166315302253,-0.203331530094147,-0.078319653868675,0.011771982535720,0.009211348369718,0.050630353391171,0.104307584464550,-0.097626850008965,0.103197768330574,0.012819869443774,-0.207973435521126,-0.093717686831951,0.031592689454556,0.089555576443672,-0.025835897773504) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.073677666485310,-0.150960564613342,0.084790349006653,0.043472059071064,0.031653985381126,-0.021882992237806,-0.049331061542034,0.053322467952967,0.067486725747585,-0.201339676976204,0.218682348728180,-0.350934892892838,-0.002862027147785,-0.198893502354622,-0.024466183036566,0.117709070444107) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.004324816633016,0.085496768355370,-0.025489557534456,0.022625258192420,0.117623731493950,-0.139015346765518,-0.137836590409279,0.285769492387772,-0.170176520943642,0.082893282175064,0.010886939242482,-0.414410829544067,-0.095446042716503,0.047187868505716,0.051278267055750,0.306307137012482) * MODEL4_texOff(vec2(1,0));
res += mat4(0.063325904309750,-0.069550834596157,0.007259913254529,-0.012513892725110,0.020787287503481,0.115325473248959,0.022921519353986,0.141572937369347,0.151406615972519,0.040436457842588,0.033755108714104,-0.311500400304794,0.030853416770697,0.028083296492696,0.047814108431339,-0.028604909777641) * MODEL4_texOff(vec2(1,1));
res += mat4(0.025328641757369,-0.085346184670925,-0.043158471584320,-0.071218214929104,0.096686810255051,0.108199723064899,-0.094158835709095,0.182063221931458,0.061395395547152,0.260387659072876,-0.018928702920675,-0.078224375844002,0.080349408090115,-0.049848373979330,-0.101348519325256,-0.033346764743328) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.010257727466524,0.212161853909492,-0.082981966435909,0.030132919549942,-0.038185369223356,0.125956326723099,0.174304887652397,-0.120923884212971,-0.022371403872967,-0.006908150389791,-0.091768227517605,0.254641860723495,-0.083926312625408,-0.197715342044830,0.122281529009342,0.100387498736382) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.102369725704193,0.068464122712612,-0.146720826625824,-0.063798911869526,-0.156128615140915,-0.004353107884526,0.037544429302216,-0.181302726268768,-0.113052368164063,0.005312865134329,0.083190850913525,0.135551974177361,-0.016254896298051,0.201074719429016,-0.032251175493002,-0.043759845197201) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.018303390592337,0.205349192023277,0.053020130842924,0.137275189161301,0.205089196562767,-0.164587602019310,0.004083484411240,-0.041432172060013,-0.135977953672409,0.207532092928886,0.090247377753258,0.112710542976856,-0.383929252624512,0.063988879323006,0.391264528036118,-0.022567756474018) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.007769258692861,0.383606672286987,-0.145113110542297,-0.137155145406723,-0.084372907876968,0.163555711507797,0.099336430430412,-0.022776670753956,-0.285636514425278,-0.017498103901744,0.106150068342686,0.049395050853491,0.158941522240639,0.125969916582108,-0.255983889102936,-0.200509622693062) * MODEL5_texOff(vec2(0,0));
res += mat4(0.127387329936028,0.053342912346125,-0.059280958026648,-0.097924478352070,-0.052943576127291,0.016330687329173,-0.084101706743240,0.118153750896454,0.080551370978355,0.075018815696239,-0.084110930562019,-0.083315998315811,0.062748335301876,-0.079112224280834,-0.039203424006701,0.049085687845945) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.067327678203583,0.092326752841473,0.051724225282669,0.164050042629242,0.123739659786224,0.107394002377987,-0.014299288392067,-0.233383670449257,-0.055751472711563,-0.029494907706976,0.065585397183895,0.230505272746086,-0.329615205526352,-0.117772750556469,0.247179493308067,-0.138520345091820) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.127392455935478,0.099081516265869,-0.069599382579327,0.069525226950645,0.034020412713289,-0.018199203535914,0.036425769329071,-0.061099868267775,-0.127666443586349,-0.027963189408183,0.052962925285101,-0.153608962893486,0.123211927711964,0.155631363391876,-0.071632005274296,-0.073385499417782) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.001539244665764,0.058216489851475,-0.136443704366684,0.005209494847804,-0.120278768241405,-0.057421669363976,0.021478060632944,0.055808588862419,0.066878698766232,0.196618944406509,-0.036697499454021,-0.020125994458795,0.137973874807358,0.061703305691481,-0.088205553591251,0.089358545839787) * MODEL5_texOff(vec2(1,1));
res += mat4(0.107522398233414,0.213181093335152,-0.220726042985916,0.258154898881912,0.065051421523094,0.038326248526573,0.033430214971304,-0.034089244902134,-0.053438700735569,0.028139555826783,-0.012118534184992,-0.069065399467945,-0.123725950717926,0.156660109758377,0.229438111186028,-0.370445430278778) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.125169560313225,0.169240057468414,-0.031777374446392,0.157708540558815,-0.012588405981660,-0.036622509360313,0.042789597064257,-0.014179263263941,0.001245098304935,-0.117387898266315,0.080953672528267,-0.159442126750946,-0.036245726048946,0.050280146300793,-0.047177903354168,0.004398379009217) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.020023100078106,0.237292274832726,-0.063320413231850,-0.012418234720826,-0.081101670861244,-0.237999126315117,-0.007627946790308,-0.098719105124474,0.046752694994211,0.179903492331505,0.008238996379077,0.131129771471024,-0.014478213153780,0.042046546936035,0.109871916472912,0.174051165580750) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.025696609169245,0.024443047121167,0.022578496485949,0.116455718874931,-0.175024881958961,-0.102122351527214,0.121810242533684,-0.167590662837029,-0.200207248330116,-0.045597735792398,0.154410526156425,-0.178439691662788,0.115668922662735,0.430135130882263,-0.165757596492767,-0.008611516095698) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.026197565719485,0.119824469089508,0.115628845989704,0.000490030797664,0.278789877891541,0.272650003433228,-0.399631470441818,-0.102195344865322,0.284044951200485,0.057000041007996,-0.226905435323715,0.061099499464035,0.294875830411911,0.084571205079556,-0.227648809552193,0.010970916599035) * MODEL6_texOff(vec2(0,0));
res += mat4(0.035104427486658,0.211783111095428,-0.182964190840721,-0.068508550524712,-0.322394996881485,-0.122164681553841,0.224431768059731,0.212538465857506,-0.141545355319977,0.153113842010498,0.164361134171486,0.019322354346514,-0.060004580765963,0.260241180658340,0.229804232716560,0.137514621019363) * MODEL6_texOff(vec2(0,1));
res += mat4(0.053301289677620,0.210890263319016,-0.049766708165407,0.035763256251812,-0.010593225248158,-0.027219882234931,-0.050653159618378,-0.128164559602737,0.111873134970665,-0.165233686566353,-0.090089224278927,0.209783792495728,0.064761735498905,0.302802890539169,-0.097541362047195,0.193794608116150) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.001656229374930,0.180631369352341,-0.026016032323241,0.014761600643396,0.030905863270164,-0.064949512481689,-0.103721722960472,0.096836179494858,0.023502429947257,-0.253671973943710,-0.122889317572117,0.393475204706192,-0.056808516383171,0.147406846284866,0.007469639182091,0.422720044851303) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.107267692685127,0.216114714741707,0.019382039085031,0.106837250292301,0.012051942758262,-0.028882618993521,0.035594563931227,0.063234083354473,-0.037269838154316,0.087064541876316,0.195070773363113,-0.126092806458473,0.120133414864540,0.191419735550880,0.053916104137897,-0.171813264489174) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.102888725697994,-0.042818885296583,0.085736483335495,-0.131275251507759) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(0.058454856276512,-0.188389554619789,-0.059202957898378,0.064915508031845);
res += mat4(-0.135549798607826,-0.040404085069895,0.044984903186560,-0.118182227015495,-0.147262871265411,-0.015221407637000,-0.070632800459862,0.064823150634766,0.022398633882403,0.233732089400291,-0.099398776888847,-0.129484936594963,0.128114745020866,0.259175390005112,0.054010584950447,0.064168356359005) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.045717801898718,0.190592378377914,0.210198700428009,-0.095020078122616,0.166184321045876,0.097656279802322,-0.056489821523428,0.165781587362289,0.000883463362698,-0.063643865287304,0.153047874569893,0.068774640560150,0.214664593338966,0.028109408915043,0.142621442675591,-0.083120353519917) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.183115243911743,-0.161331549286842,0.060453575104475,0.082157202064991,0.213687703013420,0.035902570933104,0.055460873991251,0.025920968502760,0.010438338853419,-0.142318978905678,0.009657318703830,0.052991528064013,-0.206829234957695,-0.060785554349422,0.363112032413483,0.108355499804020) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.217641755938530,0.274310171604156,0.073482044041157,0.086350232362747,0.060469660907984,-0.020114142447710,0.033042497932911,0.084139332175255,0.084307886660099,0.294664055109024,-0.074493952095509,-0.036169338971376,0.011990323662758,0.100701101124287,0.001899491180666,0.118940941989422) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.082228533923626,0.259353607892990,-0.154653996229172,-0.228695839643478,0.052564211189747,-0.089619927108288,0.021913340315223,-0.032710246741772,0.039725609123707,0.182391241192818,0.151161447167397,-0.029698716476560,0.182466760277748,-0.052779167890549,-0.232017114758492,-0.149947211146355) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.119182892143726,-0.049908630549908,0.008552767336369,-0.066053785383701,0.165814951062202,0.020133972167969,-0.206067427992821,0.152601525187492,-0.072130128741264,0.216656833887100,-0.052002780139446,-0.023021874949336,-0.218282744288445,-0.140974119305611,-0.175306797027588,0.078429289162159) * MODEL1_texOff(vec2(0,1));
res += mat4(0.129589185118675,-0.061161719262600,-0.114651866257191,-0.028654985129833,0.099477693438530,0.027866074815392,0.095900148153305,-0.069009132683277,-0.052744027227163,0.377176254987717,-0.020588679239154,0.081088714301586,0.053911451250315,0.049916431307793,0.006356143858284,0.052356127649546) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.067414082586765,0.174839064478874,0.148182585835457,0.079935193061829,-0.144689872860909,-0.580363214015961,0.143333539366722,0.142183646559715,0.093014761805534,0.236058697104454,-0.057073231786489,0.058247409760952,0.220795199275017,0.029914371669292,-0.020597485825419,-0.076699137687683) * MODEL1_texOff(vec2(1,0));
res += mat4(0.041800729930401,-0.016662325710058,-0.002363492501900,0.034947957843542,-0.114638045430183,-0.245492443442345,-0.005993972998112,-0.027894295752048,-0.077159687876701,0.098960943520069,-0.005726475734264,-0.034919571131468,-0.093700349330902,0.121045522391796,0.011623540893197,0.153069302439690) * MODEL1_texOff(vec2(1,1));
res += mat4(0.166191980242729,0.033198576420546,0.101782865822315,-0.284175723791122,-0.004493154585361,0.032047212123871,0.008345302194357,0.026872515678406,0.077353946864605,-0.086303621530533,-0.024219349026680,-0.075211934745312,0.055355221033096,0.131477683782578,-0.020010041072965,-0.113458387553692) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.022089051082730,-0.233794376254082,-0.043395373970270,0.101188458502293,0.084941342473030,0.210381180047989,-0.194708719849586,-0.008490055799484,-0.122975967824459,0.009591659530997,0.228196382522583,0.042140409350395,-0.059204112738371,0.027926661074162,-0.048411056399345,-0.024394759908319) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.157564803957939,-0.074666455388069,-0.056769620627165,-0.044534619897604,0.033199105411768,0.005306333769113,-0.034465942531824,0.002646346576512,-0.034198399633169,0.016544636338949,0.168702095746994,0.041665010154247,-0.019732020795345,0.044148970395327,0.020659180358052,-0.023282526060939) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.183971032500267,0.168888539075851,0.113328233361244,-0.029460227116942,-0.175603941082954,-0.080468520522118,0.137862950563431,0.070696219801903,0.079969555139542,0.112838625907898,0.046057865023613,0.078304268419743,-0.021740179508924,0.166566297411919,0.039637278765440,0.058151893317699) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.142566904425621,0.236391991376877,-0.187899112701416,-0.150378286838531,0.028547907248139,0.013397720642388,-0.005264124367386,-0.213811635971069,0.058225851505995,0.190734148025513,-0.243066713213921,-0.038677319884300,0.001907743513584,0.103779464960098,-0.051102127879858,-0.099818035960197) * MODEL2_texOff(vec2(0,0));
res += mat4(0.052381508052349,0.239942163228989,-0.032096508890390,-0.009491730481386,-0.015943167731166,-0.090060591697693,0.146807312965393,0.088532276451588,-0.040852785110474,-0.177753254771233,-0.217839062213898,-0.080859005451202,0.016086081042886,-0.012176291085780,-0.093858599662781,0.078679151833057) * MODEL2_texOff(vec2(0,1));
res += mat4(0.105135522782803,-0.001861272263341,-0.043490935117006,0.161046892404556,0.095933444797993,-0.029700566083193,-0.118755720555782,-0.036660961806774,-0.002297902479768,-0.116720318794250,-0.104539543390274,-0.006592915859073,-0.064996212720871,0.038800437003374,0.057278323918581,0.028090044856071) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.169352620840073,-0.300606817007065,-0.033022604882717,0.003345692530274,0.107386477291584,0.005786736495793,0.030859300866723,0.016573833301663,-0.020507752895355,-0.142661899328232,0.011022876016796,-0.081425763666630,0.129180535674095,0.246506318449974,0.056746207177639,-0.046228352934122) * MODEL2_texOff(vec2(1,0));
res += mat4(0.044949959963560,-0.047831136733294,0.132669568061829,0.069379799067974,-0.022985061630607,0.205472379922867,-0.248179599642754,-0.193507313728333,0.133646503090858,-0.254737913608551,-0.101175509393215,-0.108281582593918,0.055038705468178,-0.035566069185734,-0.004134682007134,-0.086276717483997) * MODEL2_texOff(vec2(1,1));
res += mat4(0.170271083712578,0.072883777320385,0.091128304600716,-0.125676557421684,0.053500439971685,-0.115762062370777,-0.063116528093815,-0.162585839629173,-0.065681792795658,0.208053275942802,-0.139622554183006,0.091303914785385,0.120025679469109,-0.103967472910881,0.182841569185257,-0.066713601350784) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.301438838243484,0.148709997534752,0.020098194479942,-0.381519317626953,-0.064757309854031,0.096214972436428,0.174697875976563,0.023412689566612,-0.102795086801052,0.229554072022438,-0.217474877834320,-0.081598430871964,0.084017887711525,-0.025399753823876,-0.089291617274284,-0.170054361224174) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.114544056355953,0.015400364063680,0.050071910023689,-0.153261736035347,-0.047272168099880,-0.018095010891557,-0.059312742203474,-0.033994812518358,0.059590805321932,0.038510579615831,-0.053887892514467,0.022079255431890,0.066849917173386,-0.004024209920317,0.024506630375981,-0.054707143455744) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.072956614196301,-0.025049064308405,-0.019762812182307,-0.308636009693146,0.051469687372446,-0.225853905081749,0.003185954410583,0.105983242392540,-0.039368525147438,-0.081685565412045,-0.090059742331505,-0.038197342306376,-0.275260180234909,-0.171284005045891,-0.305209219455719,0.042156755924225) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.083582140505314,0.027184598147869,-0.099550575017929,-0.301798403263092,0.070720717310905,-0.250726789236069,0.031684007495642,0.122494563460350,-0.031990420073271,-0.421695560216904,-0.089396327733994,-0.030185686424375,-0.122016467154026,0.034236352890730,0.060421463102102,0.058574341237545) * MODEL3_texOff(vec2(0,0));
res += mat4(0.054354544728994,0.097303792834282,0.061843592673540,-0.318031817674637,0.007968703284860,-0.025770245119929,-0.108488835394382,-0.082070305943489,0.014667822048068,-0.121485039591789,-0.024837879464030,0.006428271532059,-0.109282068908215,0.162178441882133,0.019474035128951,-0.023232832551003) * MODEL3_texOff(vec2(0,1));
res += mat4(0.039629578590393,-0.212643727660179,-0.008401969447732,-0.171604156494141,-0.062945000827312,0.156433820724487,0.135688319802284,0.023686647415161,0.109315752983093,-0.056063372641802,0.153247758746147,0.105633199214935,0.026249641552567,-0.270068705081940,-0.096129097044468,-0.046854518353939) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.062432676553726,-0.152560800313950,-0.073045544326305,-0.356664091348648,-0.016414925456047,0.025177055969834,-0.021361937746406,0.093873932957649,-0.034360181540251,0.034059949219227,0.361323624849319,0.110455647110939,0.040825270116329,-0.244443848729134,0.049713067710400,0.036631047725677) * MODEL3_texOff(vec2(1,0));
res += mat4(0.127178445458412,0.006670402362943,-0.024499142542481,-0.081296816468239,-0.001167138456367,-0.088179580867290,-0.024021400138736,0.003624216653407,-0.126685068011284,-0.112964965403080,-0.005782808177173,-0.046390797942877,0.046647060662508,-0.053385846316814,0.008536444045603,0.086326301097870) * MODEL3_texOff(vec2(1,1));
res += mat4(0.092087596654892,0.068145282566547,0.101672962307930,0.016119278967381,0.144810378551483,0.222533360123634,0.053603731095791,0.040429834276438,0.004945343825966,0.117328539490700,-0.020286114886403,-0.031535390764475,-0.012891252525151,0.255804955959320,-0.191464930772781,0.237674519419670) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.145781040191650,-0.296234995126724,0.100978948175907,0.116155885159969,0.227500036358833,-0.185926571488380,-0.140719145536423,0.056392919272184,-0.139514461159706,-0.085902251303196,0.329514294862747,-0.038651362061501,0.144378677010536,0.060844905674458,-0.570584475994110,-0.335164010524750) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.068162053823471,0.143575653433800,0.050603296607733,-0.089815825223923,-0.076346099376678,0.192919477820396,-0.036057535558939,-0.180442303419113,0.058225769549608,0.021819222718477,0.106900982558727,-0.051677171140909,-0.221143722534180,0.123470090329647,-0.022968592122197,-0.110379926860332) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.072130046784878,0.001325455494225,-0.040337406098843,-0.070029966533184,0.131917342543602,0.365186154842377,-0.056484106928110,0.052217219024897,-0.052540369331837,0.056835941970348,-0.025771854445338,0.062281094491482,-0.000148185848957,0.121638305485249,0.082519389688969,0.173350930213928) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.070280477404594,-0.124956704676151,0.101082175970078,-0.043644316494465,0.013453569263220,-0.564774811267853,0.394336521625519,0.219203099608421,0.099609114229679,0.063555948436260,-0.407874137163162,-0.049984302371740,0.167372584342957,0.095481157302856,0.077364630997181,-0.304047852754593) * MODEL4_texOff(vec2(0,0));
res += mat4(0.011666332371533,0.003654453903437,-0.016760760918260,-0.111113302409649,-0.053876768797636,-0.229378253221512,-0.007515467237681,-0.091080345213413,-0.034488741308451,-0.207791969180107,-0.247438907623291,-0.090392559766769,-0.076583705842495,0.018830457702279,-0.135037943720818,-0.111429803073406) * MODEL4_texOff(vec2(0,1));
res += mat4(0.053153436630964,-0.175608560442924,-0.059396829456091,0.048072941601276,-0.116788908839226,0.223902776837349,0.029042171314359,-0.163906306028366,0.030572209507227,0.207286059856415,0.006984616629779,0.011139074340463,-0.097437307238579,-0.017623420804739,-0.036999210715294,0.057482607662678) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.008303390815854,-0.103605985641479,0.045809354633093,0.021663444116712,-0.175802469253540,-0.022184638306499,-0.179795950651169,-0.145250976085663,0.131596237421036,-0.319397091865540,-0.244619816541672,0.247868508100510,0.036945912986994,-0.239698722958565,-0.025325346738100,-0.105140715837479) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.007176302839071,0.186285644769669,-0.045813124626875,0.023638803511858,0.153402835130692,-0.095822967588902,-0.062867455184460,0.160782575607300,-0.029056482017040,-0.303051680326462,-0.014216205105186,0.066818624734879,-0.009290327318013,-0.140243083238602,-0.018910959362984,0.120147496461868) * MODEL4_texOff(vec2(1,1));
res += mat4(0.155962631106377,0.108079001307487,-0.021250898018479,0.105412028729916,0.064956046640873,0.053935125470161,0.140289813280106,0.133902043104172,0.216112881898880,-0.072311416268349,-0.018414188176394,-0.070439681410789,-0.163020044565201,-0.085606642067432,-0.038083340972662,-0.003651328850538) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.073009349405766,0.110821060836315,-0.129973903298378,0.018757617101073,0.005420643836260,0.359748840332031,-0.255892992019653,-0.058677822351456,-0.228709340095520,-0.059070896357298,0.265272557735443,0.372425973415375,0.020700844004750,-0.030180687084794,-0.254754185676575,-0.285753697156906) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.135234147310257,0.123345464468002,0.001943679526448,0.062883429229259,0.112795352935791,0.012772043235600,-0.186412557959557,-0.043129291385412,-0.030296353623271,0.094522267580032,0.180763423442841,0.026320243254304,0.121610634028912,0.117751829326153,-0.045608721673489,0.091398738324642) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.060358662158251,0.087685585021973,0.155721053481102,0.112207353115082,-0.053527098149061,-0.067348293960094,-0.184044316411018,-0.007658332586288,-0.012917907908559,-0.096275418996811,0.150185063481331,0.063407130539417,0.074864506721497,-0.077240064740181,-0.079433403909206,0.157158032059669) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.052303306758404,-0.008930492214859,-0.004337901715189,-0.039101470261812,-0.105107046663761,-0.083243109285831,0.169476896524429,-0.118536807596684,-0.097428955137730,0.114841125905514,0.017633106559515,-0.060378685593605,0.260979980230331,0.092770226299763,-0.308990627527237,-0.003023640252650) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.208026990294456,0.051365312188864,0.059132326394320,0.010384663939476,-0.038297582417727,-0.257757306098938,0.063679896295071,0.244610548019409,0.050102401524782,-0.059869747608900,-0.128845527768135,-0.018291696906090,-0.113419376313686,0.009845859371126,0.014747886918485,0.016167210415006) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.035074908286333,0.012559854425490,0.085990883409977,0.077281802892685,0.028508594259620,0.195488154888153,0.094571024179459,-0.139786675572395,-0.125145748257637,-0.007903736084700,0.002659599529579,0.086909569799900,0.004843005910516,-0.235160380601883,-0.033965639770031,0.031515218317509) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.093160808086395,0.094279564917088,0.230265617370605,-0.010429747402668,-0.025030244141817,0.078777082264423,-0.089798189699650,-0.092369243502617,-0.048497144132853,-0.056851565837860,-0.036162197589874,-0.031591802835464,0.060450542718172,0.134446173906326,0.226589620113373,0.052694875746965) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.098136574029922,-0.044149518013000,0.005609392654151,0.116709120571613,-0.071850709617138,-0.226398140192032,0.070441745221615,0.187132984399796,0.111645214259624,-0.120710492134094,0.002748854458332,0.096106193959713,-0.071485154330730,0.177344650030136,0.049494646489620,0.138386309146881) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.412037014961243,-0.015564840286970,0.051567599177361,0.319749623537064,-0.193906068801880,0.123457849025726,-0.190646246075630,0.127879425883293,0.087333753705025,-0.021188501268625,-0.047096166759729,0.031876545399427,0.136073932051659,-0.053704001009464,0.039587680250406,-0.166582703590393) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.354759454727173,0.213490784168243,-0.012175287120044,-0.009880154393613,0.275740653276443,0.109477259218693,-0.241138353943825,-0.110505446791649,0.095351018011570,0.202687174081802,-0.108544029295444,0.241259068250656,-0.111323200166225,-0.061927523463964,0.043368488550186,0.131159424781799) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.012831066735089,0.238917410373688,-0.008892608806491,0.146783739328384,-0.041994668543339,-0.096350133419037,-0.037693586200476,-0.228519827127457,-0.107999689877033,0.060258656740189,0.054162707179785,-0.224382221698761,-0.452995181083679,-0.157252892851830,-0.004833953920752,-0.022886604070663) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.438640862703323,-0.009799457155168,-0.061953984200954,0.164941370487213,-0.040512338280678,0.055956017225981,0.142748698592186,0.096476450562477,0.233338132500648,-0.023066487163305,0.007106181234121,-0.110577374696732,0.151778817176819,-0.156730622053146,0.062385797500610,-0.051830682903528) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.101577296853065,0.120407439768314,-0.323607027530670,0.027391742914915,0.116972453892231,-0.014353994280100,0.174795866012573,0.084285765886307,-0.332653850317001,0.058645647019148,0.459364771842957,0.138450756669044,-0.397312968969345,0.060699611902237,0.398130387067795,0.177643194794655) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.238778278231621,0.022197691723704,0.000422823388362,0.324326425790787,-0.133447661995888,0.155866384506226,-0.074221037328243,-0.199863940477371,-0.021199483424425,0.101687215268612,0.113326311111450,-0.038195502012968,-0.198193088173866,-0.041381835937500,-0.008059522137046,-0.193173840641975) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.104295283555984,-0.232863828539848,-0.038302663713694,0.171887189149857,0.087919645011425,0.300712436437607,0.134145304560661,-0.220826059579849,-0.196585416793823,0.026995113119483,-0.078672997653484,-0.169682279229164,-0.061478186398745,-0.006288598757237,-0.042649947106838,0.092406004667282) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.260923922061920,-0.084721475839615,-0.008357655256987,0.191410407423973,-0.071256235241890,-0.220480620861053,-0.102503970265388,0.014030091464520,-0.096186548471451,-0.160790085792542,-0.225294530391693,-0.083759710192680,-0.128463402390480,0.028003176674247,0.004094040486962,0.141066819429398) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.357496857643127,0.182408556342125,-0.028662180528045,0.133324310183525,0.079407535493374,-0.252785235643387,0.123293191194534,0.257160544395447,0.230917468667030,-0.288176119327545,0.008539716713130,0.062596455216408,0.269123464822769,-0.065935775637627,0.055332180112600,0.100681960582733) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.266499340534210,0.235183566808701,-0.264043658971786,-0.604451954364777) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(-0.081105440855026,-0.009062454104424,-0.016603454947472,0.162030011415482);
res += mat4(0.046539600938559,-0.012824687175453,-0.178103253245354,0.102890506386757,0.138817355036736,-0.091016829013824,-0.147227838635445,-0.025410667061806,-0.077592335641384,-0.193975180387497,-0.085285849869251,-0.081225261092186,0.004282128065825,0.026194181293249,0.035348851233721,0.014908145181835) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.096326179802418,0.062145676463842,-0.064496189355850,-0.056358139961958,0.029287716373801,-0.049332406371832,-0.175918295979500,-0.058803547173738,0.057201378047466,0.018093038350344,-0.066682316362858,0.066506654024124,-0.006893264129758,0.200607270002365,0.206893265247345,0.112515620887280) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.241215303540230,-0.161091059446335,0.171561658382416,-0.076559148728848,-0.024529930204153,0.085371784865856,0.109556011855602,-0.010470221750438,0.011031635105610,0.117825210094452,0.149987965822220,0.012561828829348,-0.302428483963013,0.323182970285416,-0.169247686862946,0.098781064152718) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.036239456385374,-0.030357770621777,-0.159161865711212,0.000215530060814,0.083500429987907,0.074920602142811,0.081747502088547,-0.002087004017085,-0.140127316117287,0.047199185937643,-0.033646222203970,0.096909761428833,0.010303443297744,-0.034831620752811,-0.049939036369324,0.010701699182391) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.194845557212830,-0.244944557547569,-0.079494386911392,0.127830818295479,-0.083526164293289,0.039009701460600,0.283180177211761,0.056406464427710,-0.026834437623620,0.036441374570131,-0.026162495836616,0.007570222485811,0.039000369608402,-0.000031865783967,0.144701510667801,-0.014215125702322) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.394090384244919,0.213871672749519,0.182349935173988,-0.209066167473793,-0.337627172470093,-0.001846700441092,0.287641495466232,-0.360075801610947,-0.199258819222450,0.098322182893753,0.003237226977944,0.077313989400864,-0.070284947752953,0.104855298995972,-0.364126592874527,0.215803951025009) * MODEL1_texOff(vec2(0,1));
res += mat4(0.060415949672461,0.116955175995827,0.248282417654991,-0.074962720274925,0.143243491649628,0.042298559099436,0.016404088586569,-0.075230680406094,-0.008386978879571,0.034315772354603,-0.023500701412559,-0.018369162455201,0.018859658390284,0.001164327608421,0.004380481783301,0.028215864673257) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.393055409193039,-0.060180120170116,0.005972662009299,-0.106075301766396,0.046528965234756,0.060725200921297,0.022062752395868,-0.081853866577148,0.089416489005089,0.033022210001945,0.131835341453552,0.022375972941518,-0.007556576281786,-0.135443508625031,0.042870298027992,0.007040385156870) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.127234309911728,-0.000059005116782,-0.273120850324631,-0.056664213538170,-0.127366423606873,0.102225542068481,-0.150103434920311,-0.169716879725456,0.072441577911377,0.049610063433647,0.061175893992186,0.071007259190083,-0.063160441815853,-0.104377672076225,-0.032618880271912,0.056655038148165) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.006168049294502,0.000500707246829,0.276776283979416,-0.043777260929346,-0.149506032466888,-0.079464122653008,0.014732941985130,-0.048407718539238,0.072740130126476,-0.138204053044319,0.056988749653101,0.083383627235889,0.024472290650010,-0.068854719400406,0.057632233947515,0.010495170019567) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.053996384143829,-0.005422662012279,0.050095658749342,0.174684613943100,0.144113123416901,-0.087697647511959,0.085300624370575,0.132963776588440,-0.037001047283411,0.129879951477051,-0.074651427567005,-0.024132074788213,-0.012526101432741,0.084949150681496,-0.129124656319618,-0.011587263084948) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.171522185206413,0.065293610095978,-0.209993958473206,0.008888973854482,-0.129962772130966,0.049968183040619,0.037449125200510,0.066753290593624,0.186629250645638,0.009232512675226,-0.034435052424669,-0.061487242579460,-0.026793275028467,0.378026694059372,-0.183396205306053,0.024509083479643) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.014351218007505,-0.229575827717781,-0.103764623403549,-0.013017150573432,-0.048153340816498,0.059015534818172,0.079659417271614,-0.013999612070620,0.042856335639954,-0.161755561828613,-0.180452987551689,-0.067180961370468,-0.085421152412891,0.028250247240067,0.064351625740528,-0.055574860423803) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.217766463756561,0.128722161054611,-0.073146678507328,0.142251715064049,0.168403342366219,0.068167939782143,-0.096370249986649,0.058282308280468,-0.371484905481339,-0.267817139625549,-0.092772871255875,0.073861502110958,0.100759088993073,-0.062560714781284,-0.015489515848458,0.125038862228394) * MODEL2_texOff(vec2(0,0));
res += mat4(0.043726444244385,-0.173261940479279,-0.081226855516434,0.212821811437607,0.069665484130383,-0.068397343158722,-0.083104059100151,-0.075292907655239,0.010325153358281,0.002564395545051,-0.118693470954895,0.419653624296188,0.111312754452229,-0.002668284345418,-0.117114327847958,0.277387946844101) * MODEL2_texOff(vec2(0,1));
res += mat4(0.126763164997101,0.040539648383856,-0.361176818609238,0.086014650762081,-0.159687846899033,0.026238419115543,0.052076805382967,-0.106359951198101,0.023586960509419,-0.093814671039581,-0.017844188958406,0.031737167388201,0.055639684200287,0.024182809516788,-0.075821168720722,0.043256562203169) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.174498349428177,-0.072455465793610,0.053229179233313,0.042036492377520,0.177490785717964,-0.000660447520204,-0.151586398482323,0.107442162930965,-0.050361659377813,-0.101373128592968,0.033471122384071,0.093832992017269,0.039461482316256,-0.177734583616257,0.006969450507313,-0.040335841476917) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.062983602285385,-0.029277402907610,0.216921582818031,0.057809676975012,-0.007328383158892,0.097960650920868,0.066322572529316,0.111479453742504,0.194567367434502,-0.068520024418831,0.082376562058926,0.078792899847031,0.002901609521359,-0.233194440603256,0.175541803240776,0.053498536348343) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.041089076548815,0.081909410655499,-0.041814673691988,-0.035310558974743,0.009511314332485,0.016868237406015,-0.057458583265543,-0.013273476622999,0.121596083045006,-0.006604401860386,-0.129914388060570,-0.038949668407440,0.038193054497242,0.010550636798143,0.066809937357903,0.195407256484032) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.029299538582563,0.086164303123951,0.028278958052397,-0.095520570874214,-0.086992047727108,-0.312183022499084,0.050983496010303,0.232250303030014,-0.012272095307708,-0.044849611818790,0.103185765445232,-0.021595342084765,0.282991975545883,-0.216232404112816,0.081597596406937,-0.094537265598774) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.043274339288473,0.125444501638412,-0.042102251201868,-0.094975225627422,0.036628000438213,0.039762437343597,0.008007332682610,0.042353000491858,0.013741797767580,-0.019906830042601,0.048823740333319,0.004326022230089,0.077227570116520,0.162186041474342,-0.077022813260555,-0.113772869110107) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.089217565953732,0.203152656555176,-0.019997077062726,0.049558371305466,-0.097386613488197,0.017690777778625,0.073792524635792,-0.199111193418503,0.106533452868462,-0.019749086350203,-0.003001375589520,-0.005258800461888,-0.245754510164261,-0.066923059523106,-0.176251456141472,0.192642599344254) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.172844558954239,0.176487788558006,0.066945187747478,-0.095778636634350,0.166599273681641,0.215002253651619,0.300632506608963,-0.130836263298988,-0.047748621553183,-0.305313587188721,0.021577864885330,-0.100661270320415,0.420493990182877,-0.067615754902363,-0.026233149692416,-0.348752140998840) * MODEL3_texOff(vec2(0,0));
res += mat4(0.076338373124599,0.211696565151215,-0.078421764075756,-0.154294878244400,-0.123527579009533,-0.085429139435291,-0.185266464948654,0.110405184328556,0.135000333189964,0.167988091707230,0.070066049695015,-0.195180401206017,0.200715556740761,-0.053140293806791,-0.142481684684753,0.000435242342064) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.063521578907967,0.165758252143860,-0.123108237981796,-0.010818455368280,0.071039780974388,0.195993557572365,-0.013725701719522,-0.017484517768025,-0.012148739770055,0.060736224055290,0.029393255710602,0.024923978373408,-0.002002438297495,0.050018642097712,-0.125361129641533,0.122749552130699) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.012440246529877,0.172420442104340,-0.270368337631226,0.010410604998469,-0.080743938684464,0.188466712832451,-0.156501412391663,0.042019113898277,0.078417062759399,-0.141292363405228,0.074081450700760,0.013281005434692,0.059611186385155,0.129011884331703,-0.223988726735115,-0.080707401037216) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.119333140552044,0.187332138419151,-0.171225875616074,-0.061647169291973,0.132332026958466,0.040149822831154,0.081954315304756,0.002714274683967,-0.100487768650055,-0.000873102864716,-0.311071097850800,0.144234225153923,0.171306610107422,-0.132382020354271,0.060921967029572,-0.151896715164185) * MODEL3_texOff(vec2(1,1));
res += mat4(0.040857557207346,-0.053346510976553,-0.122801646590233,-0.075927272439003,-0.173608750104904,0.075257144868374,0.179786249995232,-0.152513712644577,0.013105917721987,0.004323760513216,0.002091313013807,0.035178139805794,0.022451035678387,-0.042234342545271,-0.272197097539902,-0.022125929594040) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.116254717111588,0.021009199321270,-0.154129222035408,-0.109960220754147,-0.065906554460526,-0.065305985510349,-0.100433230400085,-0.120934352278709,0.070637762546539,0.088659994304180,0.030076956376433,-0.112458862364292,0.226645350456238,0.030486345291138,0.370411098003387,0.062077470123768) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.177340298891068,-0.016476467251778,0.201377153396606,0.230067417025566,0.115939766168594,0.026680044829845,-0.093528062105179,0.222702175378799,-0.107398368418217,-0.002934757387266,-0.095325045287609,-0.091944202780724,-0.087843097746372,0.000245117582381,-0.160844758152962,-0.017259499058127) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.066815003752708,-0.133374154567719,0.156479716300964,-0.010872095823288,-0.167079240083694,0.150846719741821,0.040383122861385,0.033261198550463,-0.097975477576256,-0.073400154709816,-0.323793947696686,0.141028240323067,0.039412081241608,-0.010722606442869,-0.107665561139584,0.026246836408973) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.041031345725060,0.032598841935396,-0.094597116112709,-0.041005570441484,-0.261432528495789,-0.313767910003662,-0.082608498632908,-0.302840173244476,-0.120948463678360,-0.157587915658951,0.301979452371597,0.014525203034282,0.187333554029465,-0.012166783213615,0.614170551300049,-0.050751052796841) * MODEL4_texOff(vec2(0,0));
res += mat4(0.040561955422163,0.063597410917282,-0.156140238046646,0.186485007405281,0.376608550548553,-0.178344428539276,-0.207798764109612,0.463720023632050,0.039942078292370,-0.071987353265285,0.010917042382061,0.000877852260601,-0.039421718567610,0.005519758909941,-0.470046788454056,0.045002620667219) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.129406169056892,0.014517483301461,-0.045151039958000,0.094218395650387,-0.037380095571280,-0.141695097088814,0.038162171840668,-0.045155473053455,-0.182856276631355,0.017363877967000,0.181361541152000,0.250570476055145,-0.001641808077693,0.078822128474712,-0.058121327310801,0.012607846409082) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.103333592414856,-0.058769211173058,0.182843744754791,-0.090591371059418,-0.034279521554708,0.262676030397415,-0.091136999428272,0.057074803858995,-0.102607756853104,-0.439340829849243,-0.248659878969193,-0.111730314791203,-0.053812015801668,0.176211282610893,0.108083061873913,0.066352464258671) * MODEL4_texOff(vec2(1,0));
res += mat4(0.101161181926727,0.020732898265123,-0.116630829870701,0.104811452329159,-0.040577951818705,-0.047754522413015,0.105630762875080,-0.127627715468407,0.194327875971794,0.016847202554345,0.038667943328619,0.171913549304008,-0.046702489256859,-0.088605113327503,-0.094557613134384,-0.003452537348494) * MODEL4_texOff(vec2(1,1));
res += mat4(0.120515577495098,0.097120501101017,0.080228686332703,-0.082948677241802,-0.036340799182653,-0.077238455414772,-0.241453558206558,-0.063886448740959,0.099423579871655,0.264064490795135,0.049311030656099,0.024637905880809,-0.076446302235126,-0.068982854485512,-0.132744789123535,0.105508439242840) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.054028373211622,0.105238668620586,0.104350320994854,-0.062748603522778,0.113613195717335,-0.144897446036339,0.193351596593857,0.070726729929447,0.252312213182449,0.375762909650803,-0.063918799161911,-0.153421059250832,0.017818793654442,0.066910952329636,0.038213346153498,0.182070612907410) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.076820962131023,0.054647825658321,0.088051274418831,0.069930300116539,-0.226596847176552,-0.039828266948462,0.205452397465706,0.126117691397667,-0.231253758072853,-0.243212714791298,-0.093981534242630,-0.115127831697464,0.038299955427647,-0.025690890848637,0.135153234004974,-0.077105134725571) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.094272993505001,0.098285496234894,-0.073560886085033,-0.077650167047977,-0.028004016727209,0.207089856266975,-0.064987771213055,0.063084281980991,-0.010426621884108,0.022682070732117,-0.124548465013504,-0.027740312740207,-0.200021028518677,0.210357442498207,-0.144909039139748,0.105993092060089) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.014140614308417,-0.026767382398248,0.247871235013008,-0.039493203163147,0.144818335771561,-0.088974185287952,-0.088881872594357,-0.167057543992996,-0.170767575502396,0.067203044891357,-0.077263347804546,-0.117355234920979,-0.156859919428825,-0.259854793548584,0.183294072747231,-0.168373763561249) * MODEL5_texOff(vec2(0,0));
res += mat4(0.206331998109818,0.211414143443108,-0.043959636241198,0.081501431763172,-0.270930647850037,-0.001705335220322,0.023874698206782,-0.076754666864872,-0.133348003029823,0.102558650076389,0.207437843084335,-0.122275412082672,0.329896926879883,0.003258498385549,-0.103264138102531,0.015224793925881) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.047918774187565,0.251740664243698,-0.044499851763248,-0.208310410380363,-0.052822865545750,-0.056272771209478,0.120340958237648,-0.017381191253662,-0.011273199692369,-0.064864270389080,-0.021280912682414,-0.022053953260183,-0.178517565131187,-0.009255602024496,0.114127762615681,0.059955053031445) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.306522279977798,0.278281897306442,0.083359546959400,-0.129897430539131,0.335575878620148,0.019901828840375,0.058198813349009,0.178238853812218,-0.019450427964330,0.001383695984259,0.015361925587058,-0.074240662157536,-0.196300849318504,-0.103580348193645,0.145724073052406,-0.138780549168587) * MODEL5_texOff(vec2(1,0));
res += mat4(0.111188538372517,-0.022649230435491,-0.010795450769365,0.051638279110193,-0.166862443089485,-0.020716927945614,-0.143474429845810,-0.020304284989834,-0.079334579408169,0.047465503215790,0.060211200267076,-0.139947563409805,0.203847885131836,0.020066620782018,-0.139822289347649,0.109554871916771) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.048927824944258,-0.206920757889748,-0.261497646570206,-0.069127261638641,-0.029651427641511,0.011165225878358,-0.215905413031578,0.020609900355339,-0.057036388665438,-0.038048204034567,0.127314567565918,0.055469669401646,0.069178722798824,-0.017279535531998,0.337925136089325,0.118992082774639) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.122161403298378,-0.369402557611465,0.131084725260735,-0.131152510643005,0.008163993246853,-0.163294553756714,0.138541907072067,-0.122610151767731,-0.074183627963066,-0.062027182430029,0.032493460923433,0.205794274806976,0.042216107249260,0.089185044169426,0.119033299386501,-0.014069247990847) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.015570336952806,-0.416567832231522,0.245559588074684,-0.063560187816620,-0.169122129678726,0.067908369004726,0.146808564662933,-0.097361914813519,0.030788736417890,-0.016497252508998,-0.070950597524643,-0.058134980499744,0.120836660265923,-0.007251219823956,-0.063371375203133,-0.089938491582870) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.027182957157493,-0.055018000304699,0.056734710931778,0.065609194338322,-0.007372731342912,0.263360619544983,0.238097846508026,0.047409202903509,-0.089374057948589,0.045934904366732,0.176746994256973,-0.040999382734299,0.010334057733417,-0.317568421363831,0.292456507682800,-0.053319316357374) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.009362322278321,-0.045612737536430,0.436451286077499,-0.152610421180725,-0.018894609063864,-0.115600317716599,-0.004028620664030,-0.062119659036398,0.336347311735153,0.126431882381439,-0.143544062972069,-0.156097054481506,0.000840660009999,0.052212998270988,-0.257951706647873,-0.079592056572437) * MODEL6_texOff(vec2(0,0));
res += mat4(0.005824713967741,-0.070156924426556,0.223567664623260,-0.405426442623138,0.280782073736191,-0.343630969524384,-0.203160583972931,0.213245764374733,0.082028612494469,-0.201177358627319,-0.147042766213417,0.213140487670898,0.309855401515961,-0.377259761095047,-0.182947739958763,0.222148895263672) * MODEL6_texOff(vec2(0,1));
res += mat4(0.015815112739801,-0.088502697646618,0.405905246734619,-0.048696596175432,0.009969482198358,-0.012559032067657,0.130138188600540,-0.025222569704056,-0.037884097546339,0.001959220739082,-0.149318456649780,0.059181794524193,-0.052462361752987,-0.237153410911560,-0.000416821305407,-0.093816995620728) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.046587701886892,-0.443150073289871,0.203946992754936,-0.228201061487198,0.001770571572706,0.030084868893027,-0.239603862166405,0.045491665601730,0.021498370915651,0.269025474786758,-0.199137941002846,0.141215696930885,0.001627050223760,0.279548048973083,-0.264431625604630,-0.073517806828022) * MODEL6_texOff(vec2(1,0));
res += mat4(0.022386290132999,-0.095694415271282,-0.177030712366104,-0.104193784296513,0.076208479702473,-0.019411982968450,0.040865615010262,-0.086710050702095,0.039421100169420,-0.012427090667188,0.215593189001083,-0.065566845238209,0.096074856817722,-0.337002754211426,0.345001429319382,-0.217928186058998) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.048254206776619,-0.053626790642738,-0.303665786981583,0.086395576596260) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(-0.021939372643828,-0.129852607846260,-0.028818706050515,-0.060619212687016);
res += mat4(-0.019137565046549,-0.161009833216667,0.034528460353613,-0.100744746625423,0.040691193193197,0.054586499929428,-0.028727637603879,0.203321680426598,0.004107142798603,0.033149022608995,0.051553327590227,-0.253258705139160,-0.047440283000469,0.100767068564892,-0.041636869311333,-0.071849144995213) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.010760001838207,-0.219547286629677,0.280790627002716,-0.345116913318634,0.037814967334270,-0.103177964687347,0.048375584185123,0.100819528102875,-0.055860470980406,-0.044065780937672,0.056040909141302,-0.032942853868008,-0.070731714367867,-0.084016375243664,0.058717213571072,-0.215243890881538) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.000409423635574,-0.391195178031921,-0.042683463543653,-0.038558606058359,-0.028049159795046,0.129912987351418,-0.085057333111763,0.114218808710575,0.007834597490728,-0.006609750445932,-0.123642958700657,-0.090173766016960,-0.017840266227722,0.141769722104073,0.148584485054016,-0.181014105677605) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.432776510715485,-0.168729051947594,-0.543232142925262,0.040527634322643,0.085248053073883,0.173009663820267,0.195683836936951,0.118604153394699,0.150676310062408,-0.110601894557476,-0.074673019349575,-0.181477308273315,-0.102070271968842,0.043025396764278,-0.002315298188478,0.104348860681057) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.007144635077566,0.067181959748268,0.253369063138962,-0.018046921119094,-0.012053688988090,0.233166217803955,0.228835716843605,0.259268701076508,-0.090681947767735,0.068528108298779,-0.032853569835424,-0.009996888227761,-0.056418288499117,0.194638207554817,0.054600611329079,0.044614713639021) * MODEL1_texOff(vec2(0,0));
res += mat4(0.068415708839893,-0.359560579061508,-0.154448643326759,0.086134150624275,0.136702045798302,-0.068038247525692,-0.154991969466209,-0.071467474102974,-0.005342648364604,-0.038064721971750,0.038884751498699,0.001644962118007,-0.248215526342392,0.196257680654526,0.030368871986866,0.040415361523628) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.059550240635872,-0.136947929859161,0.188173770904541,-0.037096355110407,0.015466844663024,0.172915056347847,-0.013075278140604,-0.046441055834293,0.080637842416763,-0.020532188937068,0.069748178124428,-0.222748130559921,-0.031825941056013,-0.065092220902443,0.052688658237457,-0.019146993756294) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.274769663810730,0.064501084387302,0.177476331591606,0.015688071027398,-0.004773799795657,0.072030946612358,0.066262364387512,0.054425016045570,-0.042385071516037,0.106028042733669,0.034374661743641,-0.009772959165275,-0.156947582960129,0.168909236788750,-0.043441683053970,0.045199796557426) * MODEL1_texOff(vec2(1,0));
res += mat4(0.033589400351048,-0.065707810223103,0.048248298466206,0.037027224898338,0.177346289157867,0.042318493127823,-0.133178785443306,0.115190610289574,-0.057578537613153,0.008376140147448,0.021616498008370,0.030557852238417,-0.170554444193840,0.103961549699306,-0.031732857227325,-0.036928728222847) * MODEL1_texOff(vec2(1,1));
res += mat4(0.004210902377963,-0.055588789284229,-0.250862717628479,0.161867126822472,0.016298078000546,-0.098523050546646,0.042587932199240,0.014206275343895,0.027538379654288,-0.010851045139134,-0.052934218198061,-0.039664018899202,-0.011536530219018,-0.084495574235916,-0.117549069225788,-0.010802217759192) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.096742078661919,-0.188816517591476,0.062814526259899,0.159514680504799,0.319556653499603,-0.120473675429821,-0.025795347988605,0.231517747044563,-0.005363919772208,-0.007766860071570,0.024448299780488,-0.000619386206381,0.015803966671228,-0.100133784115314,0.068770907819271,-0.311974078416824) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.002911954652518,0.059772681444883,-0.011916357092559,0.028450619429350,-0.025777636095881,0.070974990725517,-0.015311638824642,0.174352288246155,-0.075229331851006,-0.052845358848572,-0.108286298811436,-0.140586480498314,-0.238601118326187,-0.029228603467345,-0.013862287625670,0.060263935476542) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.146013841032982,-0.185376510024071,-1.247464776039124,-0.093253195285797,0.008841743692756,0.183006703853607,0.000877511803992,-0.103344246745110,-0.071681104600430,-0.181034147739410,-0.496417909860611,0.093000099062920,0.039318416267633,-0.103610031306744,-0.119258590042591,0.013477253727615) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.104906044900417,0.015684640035033,0.066492877900600,-0.194909542798996,-0.130030378699303,0.011650395579636,0.029380593448877,-0.262901902198792,0.172093138098717,-0.101074196398258,-0.179344326257706,-0.266677558422089,0.296716809272766,0.057481095194817,-0.010246339254081,0.002730209613219) * MODEL2_texOff(vec2(0,0));
res += mat4(0.065841242671013,0.044547297060490,0.145102694630623,-0.002499070949852,-0.018314981833100,0.084649339318275,-0.097159348428249,-0.171183496713638,-0.133531823754311,0.075626276433468,0.246272504329681,-0.088863335549831,-0.282527387142181,-0.033087503165007,0.253937840461731,0.076447561383247) * MODEL2_texOff(vec2(0,1));
res += mat4(0.083766996860504,0.087850652635098,-0.349717944860458,-0.025874193757772,0.121161475777626,0.448952078819275,0.294522136449814,0.034055262804031,-0.105052828788757,-0.090346954762936,-0.164233908057213,0.024545125663280,-0.053842842578888,0.006085259374231,-0.150830239057541,-0.026996999979019) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.019017906859517,0.012760102748871,0.069339618086815,0.035171460360289,-0.214604035019875,0.255144685506821,-0.171393066644669,0.173776045441628,0.038143318146467,0.072703637182713,0.022992281243205,-0.040320023894310,-0.055579975247383,0.231999710202217,0.018238767981529,0.021623287349939) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.066334530711174,0.105921715497971,-0.109363198280334,0.023164678364992,0.106919541954994,0.272885769605637,0.063526228070259,-0.032081190496683,-0.031302612274885,0.057334035634995,0.133273661136627,0.108816854655743,-0.065358579158783,0.000972085865214,0.041327092796564,-0.042027756571770) * MODEL2_texOff(vec2(1,1));
res += mat4(0.050672333687544,-0.086427040398121,0.036896131932735,-0.206316545605659,-0.050047975033522,-0.013757992535830,-0.022476188838482,0.074960745871067,0.004386007785797,-0.171964868903160,0.062247194349766,0.071552485227585,0.051200341433287,0.097634591162205,-0.125399857759476,-0.058674771338701) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.063929624855518,-0.238509789109230,-0.001845283200964,0.054708983749151,0.059301357716322,0.056833341717720,0.025435071438551,-0.154691249132156,0.064812332391739,-0.031709652394056,0.019607987254858,0.085304245352745,0.029540963470936,-0.338767290115356,0.039263479411602,-0.037186332046986) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.026957394555211,-0.136546522378922,0.048842258751392,-0.058536004275084,0.046192232519388,-0.065329901874065,-0.087014302611351,0.016343506053090,0.101023212075233,-0.031740322709084,-0.049596101045609,0.065551713109016,0.007071843370795,-0.058035802096128,0.074920557439327,0.109032906591892) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.109253764152527,0.046612966805696,-0.058084674179554,-0.033954728394747,-0.056854873895645,-0.085441842675209,0.130206078290939,-0.165295198559761,0.052052937448025,-0.035920400172472,0.080829717218876,-0.137287959456444,0.256692022085190,0.216409355401993,-0.131217986345291,-0.098403237760067) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.077079877257347,0.093345262110233,-0.053133942186832,0.171338751912117,0.231633707880974,0.030359579250216,-0.165829584002495,-0.261190235614777,0.051558703184128,0.134715795516968,-0.087270967662334,-0.512425780296326,0.030832957476377,-0.380881309509277,0.006828735582530,0.009596619755030) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.065129742026329,0.015776636078954,-0.005920819006860,0.107122346758842,-0.167748525738716,0.266672343015671,0.182516217231750,0.092882864177227,0.211643859744072,-0.036975264549255,-0.131427541375160,0.012138251215219,-0.100815646350384,0.165053054690361,0.090135030448437,-0.086742140352726) * MODEL3_texOff(vec2(0,1));
res += mat4(0.021346982568502,0.051465582102537,0.054923001676798,-0.066029578447342,-0.165398463606834,-0.048011280596256,0.053892113268375,0.014449450187385,-0.138536766171455,-0.068880334496498,0.073870569467545,-0.069037884473801,0.071234539151192,0.094652406871319,0.014746713452041,0.163522273302078) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.011444468982518,0.192506194114685,0.047305334359407,0.141169250011444,0.113287039101124,-0.023556672036648,0.043392516672611,-0.250503271818161,-0.085697658360004,0.065266601741314,-0.097012951970100,-0.026822213083506,0.082436904311180,-0.004107523709536,-0.018105242401361,0.106917247176170) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.087571308016777,0.040602941066027,-0.030112927779555,0.066967032849789,-0.122075207531452,0.025987388566136,-0.005489117465913,-0.028642762452364,0.108504757285118,-0.016332814469934,-0.051619671285152,0.020032295957208,-0.037861168384552,0.014584927819669,-0.019660590216517,0.039777465164661) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.109817422926426,-0.046023882925510,-0.002777662826702,0.011128261685371,0.015738172456622,-0.198672130703926,0.133497223258018,-0.209818139672279,0.092786133289337,0.067385032773018,0.039790581911802,-0.096249714493752,0.072002425789833,0.011097588576376,-0.174199119210243,0.086309313774109) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.082494370639324,-0.171153694391251,0.029321642592549,-0.182902395725250,-0.091499879956245,0.211379349231720,-0.112760923802853,0.331808030605316,-0.165444314479828,0.088351733982563,0.052388407289982,-0.579707145690918,0.069881319999695,-0.316491186618805,-0.070215351879597,0.147770866751671) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.009169435128570,-0.132072865962982,-0.070004947483540,0.111473649740219,-0.016095200553536,-0.114458337426186,0.057395268231630,-0.124880477786064,-0.024164659902453,0.012241371907294,0.010399669408798,-0.153519541025162,0.015931563451886,0.110846303403378,-0.001411374309100,0.134654685854912) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.045871056616306,-0.085466079413891,0.104472331702709,-0.009257732890546,-0.041187323629856,-0.113874517381191,0.142237141728401,-0.202933490276337,0.101511098444462,-0.015694379806519,-0.097357831895351,0.038155026733875,-0.036241639405489,0.018048014491796,-0.060721632093191,0.123956598341465) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.156421035528183,0.041950359940529,-0.069819726049900,0.038599025458097,0.133538648486137,0.167299643158913,-0.364095777273178,-0.172223299741745,-0.250723540782928,0.047415461391211,0.019219554960728,0.300943344831467,0.250096023082733,0.057822905480862,-0.074694827198982,-0.099794402718544) * MODEL4_texOff(vec2(0,0));
res += mat4(0.118935264647007,-0.010348544456065,-0.120157018303871,-0.008575467392802,0.041674684733152,-0.276452213525772,0.170389741659164,-0.143212437629700,0.019580267369747,-0.123007483780384,0.000288622657536,0.144610449671745,0.005583039950579,0.113026224076748,0.095518365502357,0.135545507073402) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.003656216897070,0.011440240778029,0.097625084221363,0.073776289820671,0.033756505697966,-0.011375030502677,-0.092896997928619,-0.160481423139572,-0.066162422299385,-0.004047560971230,0.087044864892960,0.027816750109196,0.076255492866039,-0.085276320576668,-0.040234446525574,-0.000431626773207) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.032797459512949,-0.051478151232004,-0.032782576978207,-0.007515487726778,0.062391798943281,-0.010610159486532,0.103576436638832,-0.069075770676136,-0.083582319319248,-0.173190489411354,0.014171281829476,0.097122170031071,0.115323722362518,-0.157112389802933,0.046763904392719,-0.076967246830463) * MODEL4_texOff(vec2(1,0));
res += mat4(0.036115519702435,-0.059427306056023,-0.022926418110728,-0.076959863305092,0.083759739995003,0.007326042279601,-0.029515050351620,0.099896378815174,0.028698118403554,-0.334788948297501,0.066629134118557,-0.014674543403089,-0.053777720779181,0.020965673029423,0.019338306039572,0.037998992949724) * MODEL4_texOff(vec2(1,1));
res += mat4(0.085640214383602,-0.058220013976097,0.051870264112949,0.127964764833450,-0.119789026677608,-0.156333744525909,-0.137425884604454,-0.212336406111717,-0.173532128334045,-0.008452482521534,0.059840936213732,-0.074780739843845,0.109146110713482,0.086542308330536,0.019321143627167,-0.061275448650122) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.154902756214142,0.137598663568497,-0.006298961583525,0.093193918466568,0.104268454015255,-0.152688324451447,0.036407504230738,0.160633683204651,-0.353773891925812,0.141130730509758,0.041829310357571,-0.162707582116127,0.392000526189804,0.122572466731071,0.095747306942940,-0.091281630098820) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.059951521456242,0.052756931632757,-0.066158607602119,0.194780007004738,0.168982610106468,0.095005564391613,0.021691370755434,0.148172870278358,-0.037341728806496,-0.109085366129875,0.012385816313326,-0.089252285659313,-0.023838374763727,0.130563288927078,-0.123044855892658,-0.081497453153133) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.068813830614090,0.063818298280239,-0.101760163903236,0.168819874525070,0.092432163655758,-0.144294828176498,-0.153288677334785,0.104705408215523,-0.086135938763618,-0.256483197212219,0.043752837926149,-0.191184714436531,-0.142296522855759,-0.002114291768521,0.309251368045807,0.007100963965058) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.054921735078096,-0.110384076833725,-0.045540053397417,-0.085681021213531,-0.260461181402206,0.182192862033844,0.094166301190853,-0.079721078276634,-0.121573626995087,-0.236404001712799,-0.007338660769165,-0.421466320753098,-0.214722275733948,-0.221146196126938,-0.206345185637474,0.141635969281197) * MODEL5_texOff(vec2(0,0));
res += mat4(0.019852278754115,-0.012336036190391,0.044604014605284,0.120326168835163,-0.065987989306450,-0.217054218053818,0.051189888268709,0.049758460372686,0.001228808541782,0.002970150206238,-0.061752714216709,-0.079068213701248,0.107834875583649,-0.073505595326424,-0.071954697370529,0.012096114456654) * MODEL5_texOff(vec2(0,1));
res += mat4(0.057433474808931,0.070409245789051,0.096955738961697,0.220021218061447,-0.166831240057945,0.050956290215254,0.098124489188194,-0.082479827105999,0.098938308656216,-0.089782260358334,-0.039765585213900,0.056424871087074,-0.080311216413975,-0.040203802287579,0.314161896705627,0.004806868731976) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.017055526375771,0.168752953410149,-0.056246895343065,0.101675003767014,0.062106844037771,0.026548273861408,-0.148773282766342,-0.136166870594025,-0.009522696956992,0.000499368994497,0.119263783097267,0.200349763035774,-0.457748949527740,0.041519105434418,-0.028782775625587,-0.145352497696877) * MODEL5_texOff(vec2(1,0));
res += mat4(0.074188500642776,0.046092782169580,-0.019479244947433,0.109883978962898,-0.120630122721195,0.065062008798122,0.074358254671097,-0.038130152970552,-0.015797162428498,0.085634857416153,-0.075060226023197,0.148963138461113,-0.209594070911407,-0.152773737907410,-0.186254605650902,0.077874526381493) * MODEL5_texOff(vec2(1,1));
res += mat4(0.091408930718899,-0.014570877887309,-0.007028890773654,-0.092309355735779,0.040078278630972,0.056665826588869,-0.047980315983295,0.110937789082527,0.148205921053886,-0.007090993225574,0.071064211428165,-0.116315245628357,0.053134229034185,-0.168356120586395,0.105573385953903,0.026513645425439) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.108013130724430,-0.250551223754883,-0.045684002339840,0.185375303030014,0.086473919451237,-0.009226318448782,0.047515884041786,0.053193204104900,0.229844287037849,-0.204745784401894,0.020917885005474,0.424602001905441,-0.050299808382988,0.095886282622814,0.039395041763783,-0.180840685963631) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.093849234282970,-0.302623718976974,-0.044354315847158,0.152052417397499,-0.003373402869329,0.058391269296408,0.068942122161388,0.063645742833614,-0.076197244226933,-0.054772891104221,-0.035068430006504,0.212845787405968,-0.134832248091698,0.141243487596512,0.062466185539961,-0.075991541147232) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.136485919356346,0.268535822629929,0.231092616915703,0.085611619055271,0.303197920322418,0.203545153141022,0.223449617624283,-0.043500777333975,-0.039209324866533,0.001109520206228,0.142517462372780,-0.333561062812805,-0.005243482068181,-0.032723940908909,-0.165341600775719,0.016328359022737) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.030138837173581,0.266197532415390,0.231833875179291,-0.088925629854202,-0.208318412303925,-0.147648394107819,-0.518099606037140,-0.122963294386864,-0.519106149673462,-0.252257764339447,-0.298329621553421,-0.050108786672354,0.118668057024479,0.052384454756975,-0.376149564981461,-0.041776679456234) * MODEL6_texOff(vec2(0,0));
res += mat4(0.124587491154671,-0.028882220387459,-0.075068980455399,0.044090077280998,-0.050508245825768,0.186209544539452,0.272770047187805,-0.174696266651154,0.091372422873974,0.036713927984238,0.039634659886360,-0.088179431855679,-0.214729353785515,0.069305941462517,0.176809430122375,-0.019328823313117) * MODEL6_texOff(vec2(0,1));
res += mat4(0.063178561627865,0.121789783239365,0.118273690342903,-0.011896977201104,0.116416789591312,0.132985651493073,-0.122589014470577,-0.028522919863462,0.059437572956085,-0.118350394070148,-0.043449457734823,-0.136649101972580,0.005792836658657,-0.088043659925461,-0.144493550062180,0.184650987386703) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.141677856445313,0.186832576990128,0.026246186345816,0.015623829327524,0.254823595285416,-0.084604956209660,0.050116043537855,-0.048267412930727,0.485148251056671,0.041322275996208,0.029620548710227,-0.077841810882092,0.139599770307541,-0.121508531272411,-0.088046498596668,0.101099945604801) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.045898713171482,-0.076985768973827,0.019432600587606,-0.051535457372665,-0.158672690391541,-0.083488069474697,0.111702807247639,0.067472957074642,0.116356946527958,-0.052861049771309,0.026257798075676,-0.010695851407945,0.002107002073899,0.038007616996765,-0.061143171042204,0.108296014368534) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.851783871650696,0.629526495933533,-0.167089894413948,0.151808813214302) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(-0.008712033741176,0.253438591957092,-0.023215899243951,-0.021038418635726);
res += mat4(-0.012367267161608,0.006088415626436,0.023107795044780,0.075730077922344,0.180941820144653,0.059659957885742,-0.115668714046478,0.012498543597758,-0.003220424288884,-0.046714313328266,0.334149777889252,-0.061482507735491,-0.050757855176926,-0.047817796468735,-0.108468249440193,-0.089539587497711) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.025637745857239,0.024553246796131,0.000384217040846,0.126395627856255,0.263832062482834,0.201212659478188,-0.143994331359863,-0.158113703131676,-0.102621123194695,-0.087889872491360,-0.257244974374771,0.122137829661369,-0.123212113976479,-0.436307549476624,-0.062711730599403,-0.007190014235675) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.130639880895615,-0.080789409577847,0.164431840181351,0.028470685705543,0.143515273928642,0.124877169728279,-0.112390421330929,-0.016808204352856,-0.105539575219154,-0.203627884387970,0.235680207610130,0.122536316514015,-0.267827540636063,-1.087680697441101,-0.336939871311188,-0.168961554765701) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.000241202520556,-0.154533058404922,-0.377790778875351,0.197214767336845,-0.081208534538746,0.055803280323744,-0.328780591487885,0.218774765729904,-0.092081956565380,0.173121005296707,0.247443765401840,0.049150917679071,0.041227273643017,0.009658981114626,-0.025001604110003,0.051406629383564) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.003932849504054,-0.122877895832062,0.078654989600182,-0.071787074208260,-0.122963622212410,0.170012652873993,-0.719925463199615,0.126275762915611,-0.007267669308931,-0.174009427428246,0.272632032632828,-0.055850721895695,0.143459081649780,-0.300996840000153,0.016157541424036,0.047770936042070) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.059808213263750,-0.036285173147917,0.199607610702515,-0.079410217702389,-0.048688948154449,0.083569176495075,0.259112417697906,0.240332052111626,-0.110386133193970,-0.050791315734386,0.132581949234009,-0.047594368457794,-0.231872931122780,-0.536545217037201,-0.046570099890232,0.294484496116638) * MODEL1_texOff(vec2(0,1));
res += mat4(0.101738639175892,-0.122580669820309,0.074593722820282,-0.152379229664803,-0.040135793387890,0.178280368447304,-0.245015352964401,-0.199925899505615,-0.212904557585716,0.114990912377834,0.250801295042038,-0.048263501375914,-0.017286198213696,0.117774814367294,0.041370410472155,0.061071343719959) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.062098581343889,0.072767361998558,-0.018370797857642,-0.201305896043777,-0.137368828058243,-0.069116517901421,-0.308317482471466,-0.117926470935345,-0.066007003188133,0.042827960103750,0.314600080251694,0.012001981027424,0.198821112513542,0.016849327832460,-0.012421266175807,-0.022858789190650) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.119372658431530,0.176507920026779,0.206094473600388,-0.183344498276711,-0.057792667299509,0.035145673900843,-0.035576496273279,-0.292285054922104,-0.137493163347244,0.137969359755516,0.156117439270020,0.033960603177547,0.220391258597374,0.055812988430262,0.015675032511353,0.106411382555962) * MODEL1_texOff(vec2(1,1));
res += mat4(0.020815465599298,-0.025747681036592,0.151697441935539,0.002549999393523,-0.148511052131653,-0.074015207588673,0.009107133373618,0.073579281568527,-0.132422119379044,-0.041394960135221,0.155237108469009,0.182934269309044,0.072387114167213,0.064924955368042,0.037020515650511,-0.006585459690541) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.038252264261246,0.048405200242996,0.229279592633247,-0.110923297703266,-0.147203370928764,-0.006590842269361,0.213111579418182,0.264733344316483,0.012619980610907,-0.010282390750945,0.011626247316599,-0.092024907469749,0.141444683074951,0.036483258008957,-0.037296120077372,0.103906534612179) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.106757074594498,0.023609694093466,0.014230825006962,0.045935194939375,-0.029627498239279,-0.048681844025850,-0.050904776901007,0.038470454514027,0.104629598557949,0.089246340095997,0.085479743778706,-0.137358218431473,0.094858095049858,0.007845356129110,0.164942994713783,0.238240152597427) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.230829045176506,0.050651878118515,-0.226771786808968,-0.308420509099960,-0.007255549542606,-0.061196424067020,0.105006888508797,-0.114859268069267,-0.009101496078074,-0.116648800671101,-0.110849760472775,-0.221096411347389,-0.027456950396299,-0.154458284378052,0.114682890474796,0.167930036783218) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.021072672680020,-0.136076375842094,0.144077345728874,-0.146020129323006,0.174662768840790,-0.033944547176361,-0.048310637474060,-0.172569662332535,-0.115027174353600,-0.126021236181259,0.492840886116028,0.374022096395493,-0.203730165958405,0.117751546204090,0.401309341192245,0.094449065625668) * MODEL2_texOff(vec2(0,0));
res += mat4(0.041834976524115,-0.079035006463528,0.014121669344604,0.078836821019650,-0.026394899934530,-0.016208432614803,-0.095054142177105,-0.066233508288860,-0.308709621429443,0.041011400520802,0.024390975013375,0.212833553552628,0.034512117505074,0.017948836088181,0.277599751949310,0.258017897605896) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.225075557827950,-0.019851820543408,0.100789241492748,0.233547315001488,-0.180177643895149,-0.145354166626930,-0.020837590098381,-0.043276149779558,0.184238865971565,-0.056587889790535,-0.152970984578133,0.047029551118612,-0.099722862243652,0.000905478082132,0.025403032079339,-0.058111574500799) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.041894204914570,0.075855456292629,0.110080569982529,0.085838101804256,0.016991393640637,-0.185787200927734,-0.017846388742328,-0.009426723234355,0.050658833235502,-0.082703605294228,-0.114108756184578,-0.331801921129227,0.030834058299661,0.002687460975721,-0.130422741174698,-0.241735279560089) * MODEL2_texOff(vec2(1,0));
res += mat4(0.083723045885563,0.074648730456829,-0.139180034399033,0.065714068710804,-0.007448643445969,-0.024346651509404,0.104298487305641,0.020171444863081,-0.064457632601261,0.079222314059734,-0.030295781791210,-0.209637776017189,-0.166381254792213,-0.011944222263992,0.184679388999939,0.010519284754992) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.010531979613006,-0.014193151146173,-0.053645893931389,-0.214083060622215,0.069786429405212,-0.018819782882929,-0.163373872637749,-0.055238541215658,-0.014875546097755,0.036222584545612,0.166801750659943,0.001221924787387,0.056015022099018,0.000741530966479,-0.017556373029947,0.004041702952236) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.127543061971664,-0.268379181623459,0.030760634690523,-0.131539046764374,-0.063870854675770,-0.118421249091625,-0.026915082708001,0.087647378444672,-0.017546666786075,-0.030508149415255,0.153480306267738,0.230009302496910,0.049592930823565,0.016248438507318,-0.221655622124672,-0.070446237921715) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.154484391212463,-0.005967769771814,0.110740415751934,-0.044545162469149,-0.021571408957243,-0.084070190787315,0.124119631946087,0.045987341552973,0.080701380968094,-0.001294392044656,-0.036299698054790,-0.164709150791168,0.146787002682686,0.240666434168816,-0.186784312129021,-0.125920802354813) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.112639024853706,0.095927469432354,-0.112068898975849,-0.078603722155094,0.030420256778598,0.092942588031292,0.540859997272491,0.111584633588791,-0.104433715343475,-0.007765687070787,0.418150365352631,0.119338966906071,0.002905398607254,0.156973347067833,0.035868916660547,0.106202729046345) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.059043999761343,-0.293251752853394,0.039389476180077,-0.161532253026962,-0.057922326028347,-0.152083307504654,-0.450824022293091,-0.101050965487957,-0.049291457980871,0.126179218292236,0.370821833610535,-0.111075170338154,0.143426269292831,-0.185099959373474,-0.354366481304169,-0.001180017483421) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.099295653402805,-0.236171722412109,0.057362440973520,-0.056758861988783,-0.016962708905339,0.018875151872635,0.387212932109833,0.121565245091915,0.204016938805580,-0.149995476007462,-0.346887797117233,-0.125432550907135,0.027666652575135,0.145061612129211,-0.199600815773010,0.029679706320167) * MODEL3_texOff(vec2(0,1));
res += mat4(0.022880464792252,0.227735593914986,-0.027614245191216,-0.017244145274162,-0.218420267105103,0.104293398559093,-0.046858128160238,-0.221124440431595,-0.005675709340721,-0.028944974765182,-0.105239495635033,-0.082069002091885,-0.091285832226276,0.227652326226234,-0.044678606092930,-0.099213600158691) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.181946486234665,-0.072930045425892,-0.105758130550385,-0.022521097213030,-0.017733801156282,0.076615184545517,-0.033632151782513,-0.080538801848888,-0.153758034110069,-0.119486272335052,-0.172125339508057,-0.047376669943333,-0.091895319521427,0.146632403135300,-0.021095057949424,-0.003168577793986) * MODEL3_texOff(vec2(1,0));
res += mat4(0.037612862884998,-0.017513824626803,-0.015433503314853,0.060312587767839,0.071051143109798,-0.050152331590652,0.044121433049440,-0.049579218029976,-0.045169480144978,0.066361598670483,-0.237549737095833,0.005192421376705,-0.008516490459442,-0.071523912250996,-0.136132106184959,-0.025402327999473) * MODEL3_texOff(vec2(1,1));
res += mat4(0.072021558880806,0.043844141066074,-0.208088546991348,-0.155909642577171,-0.022126410156488,0.052735172212124,-0.032996729016304,0.036101009696722,-0.053043965250254,0.058903977274895,0.091825664043427,-0.015999661758542,-0.014494909904897,-0.239519461989403,-0.097342364490032,-0.113637305796146) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.099944762885571,-0.173210948705673,-0.050884541124105,-0.216226562857628,0.380531668663025,0.194384172558784,-0.426105678081512,0.166107028722763,0.107897423207760,-0.093278884887695,0.130662932991982,-0.106823943555355,-0.196463912725449,-0.338246345520020,0.145982578396797,-0.175428703427315) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.007760807871819,0.113162323832512,-0.018929308280349,0.040728580206633,-0.003957931883633,0.005058548413217,0.201760977506638,0.183491051197052,-0.104337476193905,-0.062813535332680,0.071847155690193,-0.067202642560005,-0.165403038263321,-0.454191833734512,0.037545688450336,0.029265357181430) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.097451433539391,0.145832389593124,-0.290868937969208,-0.001774434698746,0.055022876709700,0.029486363753676,-0.231964915990829,0.063641518354416,-0.006501018069685,-0.079258717596531,0.123786091804504,0.127693444490433,0.113433994352818,-0.139127016067505,-0.180763289332390,-0.210164889693260) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.314283609390259,0.010040125809610,-0.281227678060532,-0.211150512099266,-0.100391998887062,0.010566728189588,-0.567297399044037,-0.240070760250092,-0.108536913990974,-0.232887044548988,0.001402504276484,0.352596849203110,0.385586619377136,-0.868653655052185,-0.178826868534088,-0.451598405838013) * MODEL4_texOff(vec2(0,0));
res += mat4(0.059636551886797,-0.188195973634720,0.141679599881172,0.098660595715046,0.150598227977753,-0.074026845395565,-0.049301113933325,0.127690345048904,-0.091558508574963,-0.031996496021748,0.073242940008640,0.277240216732025,-0.059689506888390,-0.327121376991272,0.035370875149965,-0.025170680135489) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.018497273325920,0.023034503683448,0.006724691018462,-0.014057477936149,-0.099527098238468,-0.099074028432369,0.092591553926468,-0.185080125927925,-0.057116601616144,-0.038497526198626,-0.026381036266685,0.132076025009155,0.018095023930073,0.003095924388617,0.003420965047553,0.049137093126774) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.108237214386463,0.027337169274688,0.126420259475708,0.194788396358490,-0.498054027557373,-0.104455597698689,0.032987352460623,-0.386520236730576,0.500165343284607,-0.413361042737961,-0.539347648620605,-0.105621062219143,0.032944545149803,0.048895586282015,-0.039820611476898,0.127466917037964) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.051308806985617,-0.008425773121417,0.085933543741703,-0.037631902843714,-0.108319409191608,0.085542224347591,0.238692641258240,-0.196888834238052,0.005404557567090,-0.037892963737249,-0.258210927248001,0.027342883870006,0.021427251398563,0.171025961637497,0.043424863368273,0.199006557464600) * MODEL4_texOff(vec2(1,1));
res += mat4(0.064858637750149,-0.008462725207210,0.014426807872951,-0.117965802550316,0.024779642000794,-0.055798597633839,-0.043168529868126,-0.124558463692665,0.098087660968304,-0.050516828894615,-0.212783426046371,-0.176825642585754,-0.085481867194176,-0.314417928457260,0.063118785619736,0.085188731551170) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.204422935843468,0.149966895580292,-0.038588073104620,-0.189850658178329,-0.247526824474335,-0.037401206791401,0.003254945622757,0.223396524786949,0.229695126414299,-0.346053481101990,-0.302222907543182,-0.249035537242889,-0.258411020040512,0.011132275685668,0.115838073194027,0.098376527428627) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.093470901250839,-0.089570514857769,0.018878014758229,0.035470884293318,-0.014584200456738,-0.044778611510992,-0.059932921081781,0.240464091300964,0.125319570302963,-0.177426546812057,-0.004000636748970,-0.047936398535967,0.095536284148693,-0.085813216865063,0.006046168971807,-0.047022461891174) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.041859522461891,0.071849703788757,-0.220078289508820,0.086396425962448,-0.140007525682449,-0.095036476850510,0.132606104016304,0.105825543403625,-0.023194361478090,-0.109177738428116,0.346931874752045,0.134859099984169,-0.008209619671106,0.102543897926807,0.054758898913860,0.081604801118374) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.271748572587967,0.138021528720856,-0.283363878726959,0.082633204758167,-0.137212201952934,-0.040058892220259,-0.075693227350712,-0.345251381397247,-0.129319161176682,-0.257169425487518,0.167707949876785,0.372478902339935,0.258597135543823,0.002277519786730,-0.000597472826485,-0.149070337414742) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.057491093873978,-0.004406220745295,0.002301872009411,0.112850449979305,0.107387237250805,0.016098061576486,-0.190309286117554,-0.208498716354370,-0.034728005528450,0.104733005166054,-0.110838532447815,0.166183888912201,-0.114605523645878,0.277073800563812,-0.032933030277491,0.017071435227990) * MODEL5_texOff(vec2(0,1));
res += mat4(0.075948558747768,0.077400237321854,-0.025541992858052,-0.044428408145905,0.052039436995983,0.019678480923176,-0.057910989969969,-0.083759590983391,-0.014528078958392,-0.001318658469245,0.135244548320770,0.151219412684441,0.054337643086910,0.015770925208926,0.028734989464283,-0.058476150035858) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.089563101530075,0.245584890246391,-0.110255666077137,-0.251351386308670,-0.018986091017723,0.011063144542277,0.140811637043953,-0.051019329577684,-0.181499540805817,-0.079879127442837,0.201049283146858,0.077593468129635,0.099938817322254,0.048535518348217,-0.188655048608780,-0.247823968529701) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.016688589006662,-0.040826030075550,0.029086790978909,0.046037852764130,0.092021867632866,0.081946745514870,-0.034289956092834,-0.175103232264519,0.070921748876572,-0.072806827723980,-0.024474425241351,-0.036553233861923,0.109164647758007,0.024113280698657,0.216007798910141,0.109911851584911) * MODEL5_texOff(vec2(1,1));
res += mat4(0.058491375297308,0.239390060305595,-0.138045191764832,-0.018272202461958,0.150434911251068,-0.028276514261961,0.024214321747422,0.002173161832616,-0.166693270206451,-0.113498188555241,0.125675886869431,0.060935214161873,-0.058382824063301,0.275714010000229,0.185456305742264,0.066270381212234) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.057724706828594,-0.011991801671684,-0.109085887670517,0.060864277184010,0.006736885290593,-0.038359966129065,-0.039525527507067,0.012166026979685,-0.192884847521782,0.018206313252449,0.035548374056816,0.247164875268936,-0.014888198114932,0.026699708774686,-0.109477646648884,-0.005016088485718) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.128388330340385,-0.086085379123688,0.141192391514778,0.155951991677284,0.085318036377430,0.133271604776382,0.014182853512466,-0.042128812521696,0.059458777308464,-0.081925354897976,-0.013225653208792,0.034327771514654,0.027169657871127,0.097681112587452,0.045695349574089,-0.036711156368256) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.028198730200529,0.169123783707619,-0.321604162454605,0.124381251633167,-0.192747980356216,-0.019054740667343,0.053231853991747,0.389643907546997,0.149596571922302,0.098159946501255,-0.112587042152882,-0.179908052086830,-0.001812031725422,0.096084989607334,0.183884307742119,-0.277253270149231) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.098185822367668,-0.289120465517044,-0.063211552798748,0.024194821715355,0.127815768122673,-0.117006510496140,-0.138629287481308,-0.357451677322388,0.386762261390686,0.130712568759918,-0.103608056902885,-0.087470747530460,-0.088738776743412,-0.044337458908558,-0.100226789712906,0.009443483315408) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.016808513551950,-0.248279571533203,0.066609337925911,-0.091263674199581,-0.155589595437050,0.098848037421703,0.173204660415649,-0.159611031413078,-0.103334888815880,0.027363412082195,0.028907898813486,-0.009904674254358,-0.065135754644871,0.250798553228378,-0.015626441687346,0.233369991183281) * MODEL6_texOff(vec2(0,1));
res += mat4(0.075642168521881,0.220927044749260,-0.190252006053925,0.129284292459488,-0.110975064337254,0.038395181298256,0.028284715488553,-0.055310249328613,-0.040626514703035,-0.095217444002628,0.107112109661102,-0.129678428173065,0.114595822989941,0.038029830902815,-0.070223703980446,-0.154026851058006) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.066124118864536,0.009408214129508,0.001866357168183,0.003450924996287,-0.166007742285728,-0.035869169980288,-0.042766530066729,0.060890432447195,-0.266344606876373,0.016976645216346,0.049786169081926,0.122130170464516,-0.018850855529308,0.004342460539192,-0.235799267888069,0.174359604716301) * MODEL6_texOff(vec2(1,0));
res += mat4(0.022821245715022,0.293097108602524,0.218330740928650,0.084422014653683,0.158019885420799,-0.090821206569672,-0.080856010317802,0.133228406310081,-0.002796538406983,-0.040923394262791,0.004023847635835,0.096351407468319,0.053819920867682,0.171253874897957,0.040755625814199,0.097822263836861) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.083629995584488,0.038196619600058,-0.137940913438797,-0.069033138453960) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(0.155226930975914,0.018776277080178,0.043431855738163,0.019389254972339);
res += mat4(0.104083858430386,0.097787410020828,-0.051176618784666,0.009056042879820,0.074533142149448,-0.081204637885094,-0.012529646977782,-0.112218230962753,0.007668872363865,0.005048911552876,0.390599161386490,0.435874313116074,0.020212437957525,0.028327455744147,-0.002023418201134,0.065845549106598) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.124721296131611,0.065048888325691,0.038157962262630,-0.002344794571400,0.085988834500313,-0.083228074014187,-0.193909600377083,-0.209407731890678,0.075508795678616,0.059405189007521,-0.064185373485088,0.191163510084152,-0.062334951013327,0.141108661890030,0.034025050699711,-0.005320365540683) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.043985471129417,-0.002366079948843,0.134412005543709,0.198156535625458,-0.030563294887543,-0.153677597641945,0.127724364399910,-0.250486016273499,-0.038196481764317,0.243404120206833,0.117717958986759,0.215725719928741,0.039118196815252,-0.078655205667019,-0.213796421885490,0.033559598028660) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.033906769007444,-0.355403155088425,-0.143454968929291,0.041658710688353,0.062735691666603,-0.023533031344414,-0.056212548166513,-0.075396776199341,-0.074864052236080,0.106154538691044,0.410110205411911,0.295406788587570,0.009950719773769,0.097412906587124,-0.046131704002619,0.070545837283134) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.060527373105288,0.118168056011200,-0.230248436331749,-0.122994355857372,0.148161411285400,0.065931871533394,-0.507341027259827,-0.207371443510056,-0.024218603968620,-0.057369399815798,0.364201486110687,0.220711469650269,-0.452752292156219,-0.120234534144402,-0.047674030065536,-0.048012230545282) * MODEL1_texOff(vec2(0,0));
res += mat4(0.079965226352215,-0.258684426546097,0.030794495716691,-0.061456751078367,0.022212048992515,-0.110775850713253,0.097445324063301,-0.074748285114765,-0.134893789887428,0.200344443321228,0.311546057462692,0.279810249805450,-0.833297431468964,-0.248638570308685,-0.113234691321850,0.033680927008390) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.040007133036852,-0.020842729136348,-0.169029206037521,0.001498547266237,0.049000289291143,-0.102934703230858,-0.064332224428654,-0.169495806097984,-0.175229579210281,0.147061541676521,0.245743095874786,0.340109795331955,-0.035305727273226,0.058454070240259,-0.019660653546453,0.091086484491825) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.165920466184616,0.090883091092110,-0.075740098953247,-0.093823984265327,-0.205652132630348,-0.168759211897850,-0.190796464681625,-0.133945867419243,-0.171599134802818,0.382603913545609,0.250028938055038,0.286881685256958,0.078584440052509,-0.015770345926285,-0.057563595473766,-0.059188012033701) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.127086460590363,-0.107485853135586,0.403374880552292,0.040183767676353,0.137139871716499,-0.060945704579353,-0.053684502840042,0.008698716759682,-0.095087997615337,0.233555987477303,0.164641663432121,0.243615075945854,-0.020076783373952,0.200716957449913,-0.136910989880562,0.045395087450743) * MODEL1_texOff(vec2(1,1));
res += mat4(0.086796678602695,0.043657582253218,-0.258323401212692,-0.200554609298706,-0.206347525119781,0.105367511510849,0.001336398650892,0.019331380724907,0.092054918408394,-0.081670597195625,0.137738645076752,-0.167376101016998,-0.009429908357561,0.005258556455374,0.015165322460234,0.087639801204205) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.075135752558708,-0.000179754846613,0.218149214982986,-0.124327890574932,-0.065741457045078,0.119209066033363,0.042894471436739,-0.186017811298370,0.057148665189743,0.026010505855083,-0.037620212882757,0.204085424542427,-0.056687276810408,-0.020671473816037,0.248945832252502,0.386413693428040) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.021123681217432,0.021912574768066,-0.041367221623659,0.065260685980320,-0.048826202750206,0.089126825332642,-0.007314663846046,-0.030404772609472,0.070356220006943,-0.059817146509886,-0.171033456921577,0.192418873310089,-0.040584631264210,0.126672789454460,0.311375528573990,0.439965367317200) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.024170488119125,-0.065268903970718,-0.231481820344925,0.059124007821083,0.089988246560097,0.059079796075821,0.124901875853539,0.162581488490105,-0.062856130301952,-0.015502335503697,-0.193299129605293,-0.213335469365120,0.002796109300107,0.010271918959916,0.023260354995728,0.018834076821804) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.019339546561241,0.007984302937984,-0.066973693668842,-0.017256058752537,0.064466319978237,-0.013514395803213,-0.100121855735779,0.056618090718985,-0.141368180513382,0.195169791579247,0.054334685206413,-0.120777890086174,0.043062143027782,0.225027650594711,0.358335107564926,0.155796363949776) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.074727289378643,0.082387588918209,0.041129596531391,-0.030254617333412,0.013881931081414,0.019620470702648,0.133877441287041,0.132177501916885,-0.132851511240005,0.097820870578289,0.259742110967636,0.084725305438042,0.193032309412956,0.126303657889366,0.097674705088139,0.225568950176239) * MODEL2_texOff(vec2(0,1));
res += mat4(0.090243466198444,-0.049844320863485,0.041284903883934,-0.060285896062851,-0.120527200400829,0.034162990748882,0.086517333984375,0.032865367829800,0.042027387768030,-0.124394632875919,-0.076822362840176,-0.042283277958632,0.116715572774410,0.130670696496964,-0.032259929925203,0.024760434404016) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.040733143687248,0.115063175559044,-0.002002880908549,0.078760296106339,0.150392562150955,0.108895786106586,-0.072892338037491,-0.244663000106812,0.232264861464500,0.147774055600166,-0.149440467357635,0.046650268137455,0.190683469176292,-0.047409437596798,-0.194052189588547,-0.076633654534817) * MODEL2_texOff(vec2(1,0));
res += mat4(0.068735979497433,0.028256237506866,-0.140660330653191,-0.041275113821030,-0.040301807224751,-0.061530269682407,-0.094880625605583,-0.036414969712496,0.118331752717495,0.055841408669949,-0.103706017136574,-0.096735574305058,0.163459360599518,0.294824182987213,0.106831490993500,0.082291476428509) * MODEL2_texOff(vec2(1,1));
res += mat4(0.011337081901729,0.121802434325218,0.020044574514031,0.143640622496605,-0.068880923092365,-0.139545828104019,-0.130924776196480,0.326619356870651,-0.082429409027100,0.005783369764686,-0.005826963111758,0.078529469668865,0.026951275765896,-0.117828518152237,-0.186829090118408,0.186599090695381) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.017565591260791,0.113822013139725,0.117172442376614,0.022249162197113,0.030334452167153,0.048428647220135,0.123749509453773,-0.146679177880287,-0.220943987369537,0.014125902205706,0.260815441608429,0.383915036916733,0.097604200243950,-0.156282499432564,-0.058280147612095,-0.292127341032028) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.045207455754280,-0.023021513596177,0.054446864873171,-0.194112375378609,0.001271404093131,-0.220570489764214,-0.147020041942596,-0.068052336573601,0.060033749789000,-0.002833914011717,-0.051480524241924,-0.089683189988136,-0.015733333304524,-0.124399326741695,-0.280530273914337,-0.328979969024658) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.019962778314948,0.005340831819922,0.021140621975064,0.103920817375183,-0.101726382970810,0.164637252688408,0.518143713474274,0.093284845352173,0.023247072473168,0.137450918555260,0.027751468122005,0.039971303194761,0.022914765402675,0.134966000914574,0.157259240746498,0.009103518910706) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.175669401884079,-0.031307142227888,-0.082355484366417,0.043914582580328,-0.090605974197388,-0.140405625104904,-0.133171528577805,0.069544300436974,0.028658173978329,0.320861816406250,0.227463707327843,0.016179431229830,0.043497044593096,-0.486836642026901,-0.275584876537323,-0.023033432662487) * MODEL3_texOff(vec2(0,0));
res += mat4(0.097107589244843,-0.007931852713227,0.029760908335447,-0.076684705913067,-0.007610434666276,0.277761071920395,-0.000811012287159,0.003169286530465,0.005249951966107,-0.185191333293915,0.059693846851587,-0.037746846675873,-0.006668734364212,-0.190475270152092,-0.212381571531296,-0.219794124364853) * MODEL3_texOff(vec2(0,1));
res += mat4(0.053895588964224,-0.005311567801982,0.025880571454763,0.073112547397614,-0.007869463413954,0.064774483442307,-0.087247565388680,-0.164554730057716,0.175815701484680,-0.025042464956641,-0.170066937804222,-0.093980997800827,0.087942123413086,0.059911511838436,-0.159137800335884,-0.084302254021168) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.115948125720024,0.029664121568203,-0.027445755898952,0.022284630686045,-0.220274686813354,-0.261892855167389,0.146165013313293,0.112213090062141,0.173843979835510,-0.142041578888893,-0.100283972918987,-0.136293470859528,-0.024651234969497,-0.370971322059631,-0.113950438797474,-0.245832651853561) * MODEL3_texOff(vec2(1,0));
res += mat4(0.134400486946106,-0.078591868281364,0.003573546651751,0.036597233265638,0.034381747245789,0.143558681011200,-0.071527190506458,0.058059692382813,-0.106122992932796,-0.063488028943539,-0.160935372114182,-0.073517158627510,0.053827382624149,-0.149419888854027,-0.126704826951027,-0.192754417657852) * MODEL3_texOff(vec2(1,1));
res += mat4(0.096232101321220,-0.264040291309357,-0.369491964578629,-0.113050095736980,0.067642472684383,0.130905687808990,0.071644693613052,0.197983622550964,0.083918377757072,0.057106174528599,0.028137911111116,0.140009790658951,0.076684333384037,-0.024247178807855,-0.079602353274822,-0.149809852242470) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.079731509089470,-0.286843746900558,-0.020892119035125,-0.236538633704185,-0.023059926927090,-0.059461656957865,0.017357278615236,-0.754070281982422,0.125172182917595,0.171520158648491,0.058319713920355,0.213396087288857,-0.167953133583069,0.044715654104948,-0.319963186979294,-0.174630910158157) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.055711593478918,-0.051181759685278,-0.137604475021362,-0.155026823282242,0.037641186267138,0.132082641124725,-0.144748792052269,-0.145995050668716,0.033118195831776,0.056743253022432,0.118085168302059,0.165294349193573,0.156573191285133,-0.134189397096634,-0.051253568381071,-0.031365394592285) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.004205000121146,-0.246666774153709,-0.255790144205093,-0.123964414000511,0.120534889400005,-0.243792951107025,-0.051788307726383,0.051990110427141,0.002097681397572,-0.008551111444831,0.219740733504295,0.177796393632889,0.129274174571037,0.195191398262978,0.006351578980684,-0.145269364118576) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.061058618128300,-0.275210171937943,-0.196880817413330,-0.051363743841648,0.345043957233429,-0.151129767298698,-0.162117391824722,-0.109356813132763,-0.227932840585709,0.251139581203461,-0.029604867100716,-0.330440998077393,0.133502662181854,0.104510106146336,-0.357286840677261,0.056023914366961) * MODEL4_texOff(vec2(0,0));
res += mat4(0.047234896570444,-0.014758130535483,0.147489815950394,-0.105612933635712,-0.029986368492246,0.097635097801685,-0.036903198808432,-0.108918644487858,-0.078786171972752,0.151527181267738,0.108104385435581,-0.273975163698196,-0.149127364158630,0.180662378668785,0.008830247446895,-0.099095694720745) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.215005964040756,-0.032325997948647,-0.087713643908501,0.000667178421281,0.084674067795277,0.115323565900326,0.004652379546314,0.166022181510925,-0.031295683234930,-0.161431804299355,-0.042008329182863,0.044581275433302,-0.263070225715637,-0.118772067129612,-0.073221072554588,-0.120308093726635) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.042451433837414,-0.063127972185612,0.030475646257401,0.089666970074177,-0.410708963871002,-0.247338131070137,0.174732998013496,0.190629512071609,0.181937396526337,-0.352202415466309,-0.026451103389263,-0.152312725782394,-0.310491621494293,-0.487124145030975,0.008683439344168,-0.112841323018074) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.062852673232555,-0.040426395833492,0.013770111836493,0.098256409168243,0.092632912099361,0.143257811665535,0.339970409870148,0.260572165250778,-0.125699535012245,0.040183324366808,-0.037080764770508,-0.113848291337490,-0.193982213735580,-0.114841185510159,-0.097395569086075,-0.087005160748959) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.030632289126515,-0.174691244959831,0.095644243061543,-0.160103484988213,0.007023956626654,-0.017394075170159,-0.145258322358131,0.027130488306284,-0.095191814005375,-0.514898419380188,-0.071480557322502,-0.045629739761353,-0.013912674039602,0.006882689893246,0.030378798022866,0.097150593996048) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.088053740561008,-0.189144253730774,-0.082706034183502,-0.370977193117142,-0.108332529664040,0.101120315492153,-0.068508416414261,-0.093665130436420,0.044456962496042,-0.442295849323273,-0.140462666749954,0.114138551056385,-0.008533985354006,0.023948146030307,0.091329552233219,0.010540208779275) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.014908210374415,-0.093039967119694,-0.089556626975536,-0.132613182067871,-0.059021700173616,0.004922903142869,0.039496827870607,-0.233773201704025,0.095083147287369,-0.102784574031830,0.152079433202744,-0.005552206188440,0.089307069778442,-0.074234500527382,0.095298424363136,0.163494467735291) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.137964800000191,-0.187292993068695,0.059718675911427,-0.361159294843674,0.044197447597980,0.166337028145790,0.109131067991257,0.065352782607079,-0.166314288973808,0.037949070334435,-0.112396910786629,0.211299747228622,0.121005535125732,0.154156878590584,-0.047265827655792,0.170970708131790) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.031389683485031,-0.118014581501484,-0.308593243360519,-0.077766589820385,-0.030986540019512,0.282670617103577,-0.003701723180711,0.080973230302334,-0.033665355294943,0.149173453450203,0.309823751449585,0.054724168032408,0.015435595065355,-0.017845114693046,-0.330096334218979,-0.357663184404373) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.094107612967491,0.003084192052484,0.001893772161566,-0.186053156852722,-0.041546728461981,-0.105122916400433,-0.054735358804464,-0.145079180598259,-0.020193399861455,0.028174061328173,-0.046570826321840,-0.102686055004597,-0.076431587338448,-0.110896229743958,-0.049604136496782,-0.093738675117493) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.072028823196888,-0.188957482576370,0.023718791082501,-0.057485576719046,0.237748131155968,0.074326187372208,0.040539253503084,0.131304934620857,-0.039165277034044,0.054194837808609,-0.004221788141876,0.004866725299507,-0.111691899597645,0.051189757883549,0.025365691632032,0.178869307041168) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.183713153004646,-0.182195171713829,-0.212350115180016,-0.040909904986620,-0.029792346060276,0.154569536447525,0.153042644262314,0.068360790610313,0.023717844858766,0.080398835241795,-0.011568586342037,-0.090995825827122,0.403040587902069,-0.043599944561720,-0.145536094903946,0.085670821368694) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.127303525805473,0.048202235251665,0.015006635338068,-0.046953022480011,0.156258717179298,-0.007524377666414,0.036143947392702,0.067630216479301,0.009304088540375,-0.000661658355966,-0.037772811949253,-0.038378234952688,-0.037670295685530,0.036695715039968,-0.031261436641216,-0.012514402158558) * MODEL5_texOff(vec2(1,1));
res += mat4(0.000553409918211,0.035178039222956,-0.026214765384793,0.130761206150055,0.187512278556824,0.008271304890513,0.016940040513873,0.014442737214267,-0.222518697381020,0.169672891497612,0.032874688506126,-0.012862073257565,0.034264955669641,0.046655353158712,0.077640011906624,0.033841971307993) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.037653774023056,0.171928882598877,0.049208939075470,-0.004000653047115,-0.072245001792908,-0.009100677445531,-0.031693100929260,-0.129611119627953,-0.130873963236809,0.261861383914948,0.013242108747363,-0.239257842302322,-0.034129273146391,-0.095392465591431,0.153034955263138,0.110331393778324) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.095087200403214,0.048429705202579,0.179480910301208,-0.036986567080021,-0.036618180572987,-0.018718607723713,-0.065883986651897,-0.012842012569308,-0.019284041598439,0.004221958573908,-0.044823527336121,0.007078361697495,0.224974632263184,-0.024429652839899,-0.026831412687898,-0.049623873084784) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.056613322347403,0.048501398414373,0.139845937490463,0.120720990002155,-0.041561566293240,0.017833581194282,0.297582060098648,0.028499120846391,0.099012546241283,-0.029854834079742,-0.045734815299511,-0.082494944334030,0.148800641298294,0.069878734648228,-0.179943621158600,0.117659576237202) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.078516378998756,0.069075830280781,0.088750071823597,-0.087439410388470,0.013993421569467,0.081152439117432,-0.083852030336857,0.179942071437836,-0.003843231359497,-0.135267660021782,-0.165923237800598,0.052392531186342,0.104394912719727,-0.104453042149544,0.258898615837097,0.005923254881054) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.004278627689928,-0.115148030221462,0.207487732172012,-0.018150523304939,-0.089113064110279,0.063949972391129,-0.084120549261570,0.020374730229378,0.015758909285069,0.106873326003551,0.054126717150211,0.166377469897270,0.144633635878563,0.158215388655663,0.014197126030922,0.089905895292759) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.097338892519474,-0.055040594190359,0.065338574349880,0.084925062954426,0.054585002362728,-0.024168660864234,-0.025092933326960,-0.086145810782909,-0.089646629989147,-0.019162228330970,0.084433130919933,0.040330763906240,-0.039132822304964,-0.026343848556280,-0.145219519734383,-0.077000498771667) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.006347041111439,0.215672507882118,-0.109925761818886,0.078026719391346,-0.169850647449493,-0.177132859826088,-0.075264379382133,-0.072269447147846,-0.437764525413513,-0.185534566640854,0.235910072922707,0.041297625750303,-0.236055850982666,-0.376091957092285,0.041611623018980,-0.128555491566658) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.149635180830956,-0.104368306696415,0.182386785745621,0.046682976186275,0.178535133600235,-0.029290424659848,-0.171909347176552,-0.015216259285808,0.220745861530304,-0.080931857228279,-0.027399584650993,0.019506761804223,0.201311022043228,0.026356201618910,-0.047025132924318,0.044201772660017) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.088755548000336,-0.084855303168297,0.024255858734250,-0.378040879964828) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(-0.151173710823059,0.032073047012091,-0.161191821098328,-0.011168388649821);
res += mat4(-0.083951085805893,0.009210419841111,-0.038046635687351,0.138356477022171,-0.006607867311686,0.014004277996719,0.104522220790386,-0.226753816008568,-0.156889960169792,-0.037479031831026,-0.052854418754578,0.070072047412395,-0.006419808603823,-0.182007223367691,0.025907207280397,0.066499620676041) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.106026887893677,-0.080274604260921,0.012193134054542,0.043122950941324,0.138004824519157,0.368884652853012,-0.054394703358412,0.101682215929031,0.158933833241463,-0.056157331913710,-0.106905810534954,-0.090751975774765,-0.149291127920151,-0.471981048583984,0.076434567570686,-0.169713094830513) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.100474216043949,-0.095178976655006,0.178029969334602,0.050485949963331,-0.112211443483829,-0.082984603941441,0.154071286320686,-0.048202857375145,0.067374050617218,0.098318181931973,0.176292493939400,0.229249164462090,-0.063557498157024,-0.178230673074722,0.015997642651200,-0.030228720977902) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.020559612661600,-0.067467041313648,-0.077721253037453,-0.037295702844858,-0.027763884514570,-0.225106611847878,0.189327523112297,-0.310552597045898,0.089713692665100,-0.055210255086422,0.071904346346855,0.061713717877865,-0.016702977940440,-0.006202470511198,-0.030653411522508,0.049669861793518) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.156965076923370,0.083311423659325,-0.114368930459023,0.076376058161259,-0.288545608520508,-0.216142341494560,0.036683727055788,-0.004976951982826,0.218722075223923,0.168965429067612,-0.095767237246037,0.062338314950466,-0.086405724287033,0.059115588665009,0.052209295332432,-0.197423249483109) * MODEL7_texOff(vec2(0,0));
res += mat4(0.022212967276573,0.048040419816971,0.356544464826584,-0.005618787370622,-0.206447750329971,-0.123647004365921,0.087708458304405,-0.114335685968399,0.296347469091415,-0.175881266593933,-0.191081181168556,0.215337917208672,0.133271604776382,0.010557857342064,-0.030540009960532,0.044271063059568) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.005926833022386,0.008402561768889,0.007526075933129,0.144590422511101,-0.139496281743050,-0.012317029759288,0.063175968825817,-0.012642213143408,0.106464624404907,0.011152822524309,0.016435591503978,0.123010255396366,-0.105403587222099,0.044037412852049,0.031452868133783,-0.153260976076126) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.010475644841790,0.101665876805782,0.192640945315361,0.099900819361210,-0.102600492537022,-0.117484800517559,0.050693664699793,-0.091417536139488,-0.132097005844116,-0.047982648015022,0.044983722269535,0.039850525557995,-0.085896089673042,-0.154901996254921,-0.066234804689884,-0.146900981664658) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.123642407357693,0.005123440176249,-0.183520063757896,0.064163476228714,-0.084296248853207,-0.069780260324478,-0.168915003538132,0.084850423038006,0.017558841034770,-0.061080221086740,-0.061509873718023,-0.035432603210211,-0.127121523022652,0.046640872955322,0.137613311409950,-0.028816897422075) * MODEL7_texOff(vec2(1,1));
res += mat4(0.108909606933594,0.059786897152662,-0.051688950508833,0.027638966217637,0.126455456018448,-0.354056626558304,-0.168025672435760,0.055952537804842,0.096860997378826,-0.595852553844452,0.002039616694674,-0.025048863142729,0.099844828248024,-0.097564890980721,-0.045079275965691,0.055505637079477) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.005513474810869,0.094279348850250,-0.003448834642768,-0.054820522665977,0.143472880125046,-0.353401362895966,-0.169227361679077,0.113430008292198,-0.137832924723625,-0.955963671207428,-0.080745808780193,0.101741254329681,0.107395134866238,0.112521722912788,0.122523553669453,-0.128602072596550) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.012457808479667,0.139173910021782,0.046608574688435,0.142419382929802,-0.059701826423407,-0.121100522577763,0.034688614308834,0.023021288216114,0.013467554003000,-0.273139148950577,0.006729702465236,0.080877184867859,-0.068967618048191,0.102199025452137,0.036166507750750,-0.124771237373352) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.132689252495766,0.209233507514000,-0.028299175202847,0.136555209755898,-0.047922279685736,0.122063323855400,0.092606581747532,0.150897100567818,0.052736133337021,-0.363313853740692,0.011379945091903,0.121172487735748,-0.060006521642208,-0.044480621814728,-0.073166154325008,0.047514617443085) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.024163832888007,-0.062146268785000,0.031608905643225,-0.183964565396309,0.017208855599165,0.240471795201302,-0.061671148985624,0.083031423389912,0.205457001924515,-0.268660217523575,-0.169012576341629,-0.165939748287201,0.201971814036369,-0.133940115571022,-0.053135942667723,-0.079618453979492) * MODEL8_texOff(vec2(0,0));
res += mat4(0.180288597941399,0.047292202711105,0.044635891914368,0.128922864794731,-0.043586131185293,0.112639896571636,0.034789834171534,0.048937663435936,-0.165080875158310,-0.088546201586723,-0.066266037523746,0.036682646721601,0.002369448309764,0.044563274830580,0.023315200582147,-0.053705025464296) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.086995966732502,0.006198137067258,0.026644477620721,0.039345629513264,-0.088614217936993,0.271518647670746,0.177328675985336,0.059299632906914,-0.026921426877379,0.010107272304595,0.089355714619160,0.123975917696953,-0.057814780622721,-0.079744495451450,-0.154520750045776,0.198608964681625) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.057847678661346,-0.004755726084113,0.017132323235273,-0.313801258802414,-0.101245336234570,0.152785509824753,0.120381154119968,0.119422905147076,-0.244153350591660,-0.093211427330971,-0.066073745489120,-0.028247341513634,0.314899384975433,0.187056362628937,-0.103432029485703,-0.121157824993134) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.093443736433983,0.018384894356132,-0.033301860094070,-0.048857569694519,-0.078047499060631,0.099826619029045,0.149551972746849,0.014860964380205,0.172428250312805,0.032567903399467,0.158661529421806,-0.052420198917389,0.134689137339592,-0.025245785713196,-0.191909164190292,0.096450008451939) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.053390692919493,0.184334263205528,-0.080450154840946,0.371245414018631,0.062178060412407,-0.134651437401772,0.143617540597916,-0.238652423024178,-0.098969131708145,-0.229855209589005,-0.018547063693404,-0.056278470903635,-0.252404183149338,0.010926400311291,0.039647400379181,-0.113013505935669) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.068491972982883,-0.060045197606087,0.026658797636628,0.050278335809708,0.100899562239647,0.054217394441366,0.143621981143951,-0.099985964596272,0.038401782512665,-0.423946768045425,-0.121103495359421,-0.207275167107582,0.211175411939621,-0.151894703507423,-0.100441947579384,-0.063933521509171) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.155481487512589,-0.012673530727625,-0.012189385481179,0.038638785481453,-0.101269051432610,-0.106126144528389,0.034221027046442,-0.035157557576895,-0.093838922679424,-0.056573417037725,-0.057634342461824,-0.280199855566025,-0.049546830356121,0.136613264679909,0.126850038766861,0.127403229475021) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.011977485381067,-0.100639611482620,-0.099173471331596,0.345995962619781,0.117019899189472,0.067908450961113,0.049551032483578,0.329168140888214,-0.023483777418733,-0.170451581478119,-0.128266394138336,-0.267484426498413,-0.285521298646927,-0.071343183517456,0.079320304095745,-0.114198841154575) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.101308569312096,-0.037605151534081,-0.147657215595245,-0.102019257843494,0.088824778795242,0.158569738268852,-0.205270901322365,-0.063451193273067,-0.102481625974178,0.184943437576294,-0.099632330238819,-0.101741313934326,-0.041475914418697,0.006967245601118,0.064041428267956,-0.064255513250828) * MODEL9_texOff(vec2(0,0));
res += mat4(0.355363130569458,-0.114653021097183,-0.059130083769560,0.004109980538487,-0.010601967573166,0.096128180623055,0.140148356556892,0.029381182044744,-0.178047880530357,0.064982526004314,0.144990354776382,-0.272246956825256,0.025957711040974,-0.214705944061279,-0.003526623127982,0.177074581384659) * MODEL9_texOff(vec2(0,1));
res += mat4(0.032572388648987,0.028515337035060,-0.071225017309189,0.310223966836929,0.052402742207050,0.117781728506088,-0.027706405147910,0.106170445680618,-0.116327248513699,-0.013428399339318,0.071519456803799,0.049029204994440,0.112744130194187,-0.031300894916058,0.139913350343704,-0.098544023931026) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.074337750673294,0.083326734602451,0.164425849914551,-0.149811834096909,-0.087196990847588,-0.024111397564411,0.040218472480774,0.099715933203697,-0.007923109456897,0.190953329205513,0.060879245400429,0.049326229840517,0.097907699644566,0.011633084155619,-0.082350879907608,0.056050363928080) * MODEL9_texOff(vec2(1,0));
res += mat4(0.048177998512983,0.077081046998501,0.056521963328123,0.085301995277405,0.139210909605026,0.010390781797469,-0.131584316492081,-0.163639411330223,0.070423111319542,0.046489015221596,-0.023276912048459,-0.039489481598139,-0.015758372843266,-0.021706126630306,-0.084633551537991,0.111336126923561) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.058976430445910,-0.045931167900562,-0.094878807663918,0.059410061687231,0.068121060729027,-0.019699141383171,-0.093173123896122,0.007137974724174,0.111251592636108,0.030427513644099,0.023810781538486,0.111718900501728,0.019958352670074,-0.333711862564087,-0.084198869764805,0.093615204095840) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.163945600390434,-0.303400188684464,-0.312966465950012,0.025185475125909,-0.156577467918396,-0.086588554084301,0.039781879633665,0.063265003263950,0.018867727369070,0.129944577813148,0.057959128171206,-0.076347462832928,0.102779105305672,-0.343820154666901,-0.175967678427696,-0.074853718280792) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.012116769328713,-0.126204073429108,0.090971447527409,0.008164623752236,0.159313052892685,-0.046149987727404,-0.014021323062479,0.096048772335052,0.069889716804028,-0.201892420649529,-0.179254427552223,-0.303751051425934,0.008612650446594,-0.054336186498404,-0.012393279932439,0.069681063294411) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.007750420831144,-0.008909245021641,0.055790700018406,0.131062850356102,-0.038963131606579,-0.399194300174713,-0.113226480782032,0.003343984950334,-0.039572276175022,0.175301268696785,-0.061183247715235,0.116442196071148,-0.056751187890768,0.139326974749565,-0.211677283048630,-0.093515224754810) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.315410226583481,0.235098198056221,0.333804339170456,0.159720361232758,-0.116618074476719,-0.357227921485901,0.391935169696808,0.027920495718718,-0.287949502468109,0.020329201593995,-0.046246360987425,-0.162715151906013,0.021997032687068,0.231993019580841,-0.071943469345570,-0.039195794612169) * MODEL10_texOff(vec2(0,0));
res += mat4(0.223554864525795,0.076315432786942,-0.027428895235062,-0.015160144306719,0.338457882404327,-0.228726759552956,-0.282027781009674,0.118842855095863,0.178170308470726,-0.011644974350929,0.013435977511108,-0.435461670160294,0.139778867363930,0.023910993710160,-0.137594386935234,0.050036046653986) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.043761905282736,-0.021842086687684,-0.011981465853751,-0.104742355644703,-0.057935915887356,0.279911458492279,0.227146610617638,-0.066803082823753,-0.136455342173576,-0.034450143575668,-0.092166356742382,0.005247781984508,0.097156181931496,0.091029547154903,-0.056293949484825,-0.033235039561987) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.135665550827980,-0.209523096680641,-0.358300685882568,-0.267075806856155,-0.170279935002327,0.312570929527283,0.152134120464325,0.030561715364456,-0.097367554903030,0.090807572007179,-0.092915371060371,-0.038101121783257,-0.161361068487167,-0.013047066517174,0.085260108113289,0.194487944245338) * MODEL10_texOff(vec2(1,0));
res += mat4(0.051307577639818,-0.021975627169013,-0.037075970321894,-0.089737109839916,0.240535140037537,0.091974511742592,-0.023046076297760,-0.017633892595768,0.039893139153719,0.158928409218788,0.281909525394440,-0.063623897731304,-0.038189090788364,0.184531494975090,0.033933006227016,-0.031597957015038) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.048649642616510,0.206625610589981,-0.005764623638242,-0.229777231812477,0.031600866466761,0.406357556581497,0.234979271888733,-0.026658581569791,-0.034022688865662,0.034483660012484,0.092048525810242,-0.137601822614670,-0.181695446372032,-0.144459381699562,-0.016415657475591,0.351299822330475) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.115796357393265,-0.186373725533485,-0.017295159399509,-0.107716031372547,-0.054907049983740,0.280784994363785,0.458097845315933,-0.010594496503472,-0.128298759460449,0.005500657018274,-0.008866233751178,0.068364545702934,0.161534845829010,-0.814952969551086,-0.170061901211739,0.415904641151428) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.113938428461552,0.019742108881474,0.036814562976360,-0.133412450551987,-0.062091145664454,0.227904826402664,0.194886684417725,0.095651052892208,0.002086984692141,-0.036853063851595,0.040807235985994,-0.005441940389574,0.105711147189140,0.057011995464563,-0.083566099405289,0.152252510190010) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.032492522150278,-0.018547700718045,0.000889790127985,-0.204260513186455,-0.052158903330564,0.067644841969013,-0.067929409444332,0.029964789748192,0.106586612761021,-0.091365233063698,0.033575657755136,-0.217800945043564,0.019914260134101,0.082917019724846,0.020054321736097,-0.182383954524994) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.120834447443485,-0.172074034810066,0.079222120344639,0.142699241638184,0.275054842233658,-0.045801438391209,-0.111537195742130,0.027228552848101,-0.229181110858917,0.124976627528667,0.393617928028107,0.189677223563194,-0.131255745887756,0.097531266510487,0.123144149780273,-0.028047667816281) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.092713154852390,0.067786276340485,-0.029174426570535,-0.148749113082886,-0.001171401818283,-0.221540793776512,-0.048285793513060,0.050496969372034,-0.199037477374077,0.030420960858464,0.003545929910615,-0.002675546100363,0.123303040862083,0.102352723479271,-0.073014102876186,0.023672051727772) * MODEL11_texOff(vec2(0,1));
res += mat4(0.015715362504125,0.013187597505748,-0.128972694277763,-0.147455036640167,0.243771493434906,-0.057306095957756,0.070100210607052,-0.002664651256055,0.027529787272215,0.033110037446022,-0.021291751414537,-0.109441362321377,0.013890845701098,0.075119823217392,0.106316350400448,0.170129954814911) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.007265460677445,-0.151323959231377,-0.024874811992049,0.048795774579048,-0.161522939801216,-0.049048870801926,0.104238264262676,0.052256636321545,0.085380896925926,-0.146761655807495,-0.148851945996284,-0.078883349895477,0.047968130558729,0.271588057279587,0.259432256221771,0.076726436614990) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.079734645783901,0.088958583772182,-0.068573117256165,-0.174016639590263,0.101831234991550,-0.057533595710993,-0.047809381037951,-0.189878031611443,-0.182983279228210,-0.018207512795925,-0.198840394616127,-0.028112951666117,0.070466294884682,0.060408614575863,0.140616193413734,0.103467524051666) * MODEL11_texOff(vec2(1,1));
res += mat4(0.105962827801704,-0.073753513395786,0.074602477252483,-0.005739690735936,-0.018914220854640,-0.051153119653463,-0.032563976943493,-0.275896251201630,-0.016580497846007,0.129912972450256,0.000187580997590,-0.124598681926727,0.032692316919565,-0.118879914283752,0.067973643541336,0.079750619828701) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.137729182839394,0.167234271764755,-0.160915881395340,-0.035380177199841,-0.158912554383278,0.114636719226837,0.057177316397429,0.137026473879814,0.114675447344780,-0.292333513498306,-0.189992353320122,-0.018629875034094,0.044374044984579,-0.056128550320864,0.085900790989399,0.079782128334045) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.070405051112175,-0.091430008411407,0.037779171019793,0.095637872815132,-0.117682211101055,0.114296376705170,-0.075553074479103,-0.011359425261617,0.025977473706007,0.128942608833313,0.076318509876728,0.050177223980427,0.015327384695411,-0.010256236419082,0.069885186851025,-0.007974056527019) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.157316341996193,0.145829260349274,0.137319281697273,-0.156563088297844,0.116055980324745,-0.048592336475849,0.088298566639423,0.222500756382942,0.021767994388938,0.084170162677765,0.119501374661922,0.067723251879215,-0.035310462117195,0.019636437296867,0.214753538370132,0.148958727717400) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.268849611282349,0.240301638841629,0.096985042095184,-0.051680922508240,-0.188179656863213,-0.033489171415567,-0.241651058197021,0.136507228016853,-0.391560137271881,0.172509267926216,0.542511880397797,-0.153385519981384,-0.069499887526035,0.016596229746938,0.157206356525421,-0.172832384705544) * MODEL12_texOff(vec2(0,0));
res += mat4(0.065850354731083,-0.036946229636669,0.086685128509998,0.120361179113388,-0.134212106466293,-0.104312434792519,-0.159820884466171,-0.023259883746505,0.267958700656891,-0.030460940673947,-0.184946775436401,0.008988044224679,0.025254573673010,0.004647063557059,0.001615115441382,0.039073098450899) * MODEL12_texOff(vec2(0,1));
res += mat4(0.005201414693147,-0.014167137444019,0.028057586401701,-0.008087618276477,-0.108497411012650,0.014052909798920,0.019177213311195,0.069227837026119,0.113784439861774,0.029136033728719,-0.032287184149027,0.026375528424978,0.145566627383232,0.043836399912834,0.033526811748743,-0.006194552406669) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.027302213013172,-0.044258058071136,-0.132579371333122,0.064291737973690,0.024676356464624,-0.017952073365450,-0.168992877006531,-0.077435366809368,-0.115254960954189,0.118639193475246,-0.109400235116482,-0.011479366570711,-0.302500247955322,-0.110865116119385,0.281305700540543,-0.013167494907975) * MODEL12_texOff(vec2(1,0));
res += mat4(0.101588301360607,-0.124821901321411,-0.017269767820835,0.133471772074699,-0.017400916665792,0.058279171586037,0.012367624789476,-0.095174185931683,0.014772300608456,0.089940108358860,0.175982296466827,0.030596168711782,0.072199836373329,-0.094770155847073,-0.236960142850876,0.006282874383032) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.040355894714594,0.018047224730253,0.588201045989990,0.223139166831970) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.021918240934610,-0.073736064136028,0.157453432679176,0.067636407911777);
res += mat4(0.024918202310801,0.011644191108644,0.143515750765800,0.112531743943691,0.111923471093178,0.364386767148972,-0.233243495225906,-0.104129932820797,-0.278442502021790,0.149643078446388,0.058974370360374,0.040103111416101,0.016803430393338,-0.077775567770004,-0.201337337493896,0.190382018685341) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.006713148206472,-0.051283303648233,-0.137819170951843,-0.030498402193189,0.008060744963586,-0.336474597454071,0.029673231765628,-0.039761684834957,0.040295775979757,-0.102884531021118,-0.032901421189308,-0.083427809178829,-0.313139528036118,-0.160261854529381,-0.142645388841629,0.162378773093224) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.147832229733467,-0.041133444756269,-0.097446352243423,-0.225248411297798,-0.035454694181681,0.020533166825771,-0.183165967464447,-0.060604941099882,-0.096932366490364,-0.031588114798069,0.097369804978371,0.045803755521774,-0.281295061111450,-0.098252043128014,-0.232145860791206,-0.005227745044976) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.007926909253001,0.103661820292473,0.095550261437893,0.016801925376058,-0.141628667712212,0.122944273054600,-0.160157591104507,-0.158124312758446,0.142081364989281,0.483994930982590,-0.077129937708378,0.098877303302288,0.134822160005569,-0.149301826953888,-0.201603025197983,-0.088720917701721) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.026599679142237,-0.018339563161135,-0.401556551456451,0.001241073361598,-0.085285119712353,-0.225092753767967,-0.040939558297396,-0.101146921515465,-0.110223799943924,-0.721208989620209,-0.376445472240448,-0.107821233570576,0.136154145002365,0.201183214783669,-0.444423556327820,-0.048377785831690) * MODEL7_texOff(vec2(0,0));
res += mat4(0.189220532774925,-0.288196206092834,-0.442794054746628,-0.387215286493301,-0.019732665270567,-0.236525714397430,0.056318849325180,0.018751567229629,-0.003106543561444,0.230495378375053,-0.265439957380295,0.250209361314774,-0.063184753060341,-0.024645620957017,-0.293002098798752,0.016702704131603) * MODEL7_texOff(vec2(0,1));
res += mat4(0.042777858674526,0.025900941342115,0.072569400072098,0.124615356326103,-0.081338182091713,0.040828954428434,-0.064328074455261,-0.278829574584961,0.077573165297508,0.088319376111031,-0.091409809887409,-0.057614479213953,0.066135309636593,-0.020843707025051,-0.117275170981884,0.027791570872068) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.018167329952121,-0.016549443826079,-0.097236946225166,-0.009759709239006,-0.028453769162297,-0.020402636379004,-0.187083587050438,-0.042073190212250,0.035089310258627,-0.159602567553520,0.013462046161294,-0.030424425378442,0.009568089619279,0.009724787436426,-0.135238677263260,-0.112928561866283) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.000904024404008,-0.067311353981495,-0.082622855901718,0.101442515850067,-0.095875404775143,-0.118458785116673,-0.122021295130253,0.121921546757221,-0.048076175153255,0.034970648586750,0.157490313053131,0.011655848473310,0.009588814340532,-0.013749193400145,-0.079186037182808,-0.132933750748634) * MODEL7_texOff(vec2(1,1));
res += mat4(0.284151732921600,-0.056703191250563,-0.040747307240963,-0.057557534426451,-0.010895323008299,0.063820682466030,-0.042665179818869,0.211775854229927,-0.154770120978355,0.066386908292770,0.039841573685408,0.045470513403416,0.175274312496185,-0.142709434032440,0.197698548436165,-0.045381408184767) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.021478831768036,0.233518853783607,0.132441192865372,-0.118599683046341,-0.114264361560345,0.054261486977339,-0.029168508946896,-0.271767586469650,-0.342221766710281,0.032164201140404,-0.156554535031319,0.020853064954281,0.035579662770033,-0.041548736393452,0.099997289478779,0.020271645858884) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.104094684123993,-0.037991594523191,0.353615462779999,-0.060589775443077,-0.220479577779770,0.011274421587586,0.380491793155670,0.022476665675640,-0.463631093502045,-0.078716397285461,0.156972110271454,0.088367976248264,-0.070555560290813,0.056460589170456,-0.012989025563002,-0.161617293953896) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.260266453027725,-0.399347662925720,0.157158240675926,-0.079941265285015,0.038187164813280,-0.017111275345087,-0.037898216396570,0.209496006369591,-0.003544317791238,0.149748951196671,0.049243550747633,-0.051805764436722,-0.013976967893541,-0.264474332332611,-0.011683884076774,-0.089657865464687) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.042189758270979,0.223414421081543,-0.042955182492733,0.061363682150841,0.018039159476757,0.149546727538109,-0.036354199051857,0.081655412912369,-0.653085589408875,-0.127006292343140,-0.000685696024448,-0.005891511682421,0.095862589776516,0.289517432451248,0.065638326108456,-0.029429631307721) * MODEL8_texOff(vec2(0,0));
res += mat4(0.281775176525116,-0.106742173433304,-0.126380920410156,0.278253316879272,-0.053421992808580,0.180892184376717,0.274925738573074,0.018821040168405,-0.480984210968018,-0.318156957626343,0.165665507316589,-0.057021718472242,0.082826390862465,-0.089634455740452,0.230311587452888,0.145734250545502) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.032536737620831,-0.144979253411293,-0.030229993164539,-0.155898094177246,0.087957777082920,-0.011882971972227,0.116060242056847,0.107378356158733,-0.060406055301428,0.045247297734022,0.002023712499067,0.044654134660959,-0.119069226086140,-0.318374991416931,-0.030582064762712,0.019621435552835) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.057430364191532,0.145218834280968,-0.133303046226501,-0.012270496226847,-0.012067011557519,0.095062524080276,0.252285867929459,0.050470173358917,-0.235938951373100,-0.180457234382629,0.184844002127647,-0.090545974671841,0.015208862721920,0.280396997928619,0.155418559908867,0.040261913090944) * MODEL8_texOff(vec2(1,0));
res += mat4(0.048692889511585,0.054903663694859,0.255032330751419,-0.201801016926765,0.041402686387300,0.028282467275858,-0.183347716927528,0.152677580714226,-0.114917553961277,0.126512795686722,0.140446126461029,-0.058886282145977,-0.031677741557360,0.102951772511005,-0.058452222496271,0.045406602323055) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.014938887208700,-0.047475196421146,0.179418742656708,-0.008964893408120,-0.068784937262535,0.139836072921753,0.204088479280472,0.045243084430695,-0.080525942146778,-0.221727877855301,-0.121006272733212,0.091317676007748,0.067041426897049,-0.063523449003696,-0.183208644390106,-0.106946706771851) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.194717824459076,0.041799321770668,0.167193621397018,-0.290430933237076,-0.283308863639832,-0.137501254677773,0.153369739651680,-0.127345219254494,0.102058961987495,0.016312766820192,-0.350856989622116,0.285252511501312,0.108917035162449,-0.155817434191704,-0.203187733888626,0.103853985667229) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.139045998454094,0.148072689771652,0.008594338782132,-0.416862457990646,-0.010412146337330,0.049312405288219,0.041608612984419,-0.055960699915886,-0.286281198263168,0.105053544044495,-0.144747421145439,-0.219262868165970,-0.062141668051481,0.025628449395299,0.072120808064938,0.195093855261803) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.030228976160288,0.059114065021276,0.067400798201561,0.131189152598381,0.117760390043259,0.309144288301468,0.239012688398361,0.104551777243614,0.171004757285118,0.296448767185211,-0.351590454578400,0.127372190356255,-0.035525005310774,-0.075717739760876,0.143304497003555,-0.001251831767149) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.021186124533415,-0.034061256796122,-0.286459028720856,-0.387417286634445,0.184016361832619,-0.258680701255798,0.110286071896553,0.311494886875153,-0.066946186125278,-0.166556715965271,-0.247611448168755,0.007378299720585,-0.033085137605667,-0.278986781835556,0.146551728248596,-0.476872295141220) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.109961889684200,0.220971301198006,-0.296301096677780,-0.649185538291931,-0.079358637332916,0.086409747600555,0.323185414075851,-0.153757750988007,-0.003529069479555,0.131800785660744,-0.124883547425270,-0.422849953174591,-0.014149334281683,0.053710728883743,0.159813180565834,0.601288914680481) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.006028300616890,-0.051137149333954,-0.136426001787186,0.114495024085045,-0.017179660499096,-0.031610701233149,0.321727395057678,-0.051364693790674,0.126588761806488,0.043209873139858,-0.180132552981377,0.177238166332245,-0.106845095753670,-0.095036678016186,0.157714471220970,-0.160046890377998) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.076776102185249,0.207415342330933,-0.303229033946991,-0.252344310283661,0.249284878373146,-0.138441219925880,-0.032745059579611,0.033368047326803,-0.003269544569775,-0.107751563191414,-0.270570069551468,0.180656298995018,-0.045168053358793,-0.229145392775536,0.003823977895081,0.241570875048637) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.024207800626755,0.198568314313889,-0.248004943132401,-0.190922588109970,-0.027197973802686,0.022415062412620,0.153825595974922,0.020803902298212,0.031095001846552,0.144510239362717,-0.340694546699524,-0.019537631422281,-0.110386312007904,-0.041097234934568,-0.036488078534603,0.204167723655701) * MODEL9_texOff(vec2(1,1));
res += mat4(0.024852113798261,0.108081281185150,-0.045598518103361,0.131297796964645,0.031838569790125,0.116757445037365,0.101429127156734,0.018236778676510,0.130138665437698,-0.181788161396980,-0.118289537727833,-0.003884672420099,-0.181152075529099,0.087515927851200,-0.128451690077782,0.012424657121301) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.279751539230347,-0.113099873065948,0.115749388933182,-0.085959449410439,0.011119788512588,-0.013584356755018,0.172171741724014,0.060485914349556,0.006646060850471,0.137176573276520,-0.208600744605064,0.068400226533413,-0.198688030242920,-0.146992936730385,-0.076610080897808,-0.066671401262283) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.074507318437099,0.064515233039856,0.029845941811800,0.015642615035176,0.047764603048563,-0.065585002303123,-0.078632377088070,-0.000685161794536,0.093227498233318,0.293029665946960,-0.070659682154655,-0.254450529813766,-0.104996748268604,0.155984491109848,0.104628376662731,0.078352808952332) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.019424470141530,0.001212918548845,-0.086205750703812,0.068711973726749,-0.121282070875168,0.037200383841991,0.060782074928284,0.201402917504311,0.004565968178213,-0.344460070133209,-0.015597680583596,0.070164427161217,0.010599335655570,-0.090555809438229,-0.168495655059814,-0.025712685659528) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.431528210639954,-0.352778792381287,0.305581986904144,0.049531769007444,-0.244296967983246,-0.037784319370985,0.107830844819546,-0.197577327489853,0.013009533286095,0.347821563482285,-0.134850248694420,0.045533861964941,-0.067642152309418,0.003744789632037,0.056084897369146,0.138856381177902) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.151024445891380,-0.042441204190254,-0.215150997042656,-0.021090444177389,-0.309609740972519,0.026882175356150,-0.163353875279427,0.268108278512955,0.104918569326401,0.263219952583313,-0.251891911029816,-0.550032436847687,-0.110219091176987,0.153157830238342,-0.060890879482031,-0.084679976105690) * MODEL10_texOff(vec2(0,1));
res += mat4(0.051849961280823,0.018778836354613,-0.000785328040365,0.128399923443794,0.114968299865723,-0.072749815881252,0.091214798390865,0.176146507263184,-0.111943595111370,-0.107715070247650,0.119722008705139,-0.009279294870794,-0.000591002462897,-0.022081647068262,-0.159320399165154,-0.077800787985325) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.070559203624725,-0.173431813716888,-0.103805698454380,0.068034037947655,-0.023959998041391,-0.004772578366101,-0.050624124705791,0.191240519285202,-0.008834281004965,0.183670237660408,-0.304089307785034,0.084514088928699,0.103237174451351,-0.141286373138428,0.011122154071927,0.000273589277640) * MODEL10_texOff(vec2(1,0));
res += mat4(0.063928961753845,0.137163385748863,0.045421857386827,-0.052741322666407,-0.189103260636330,-0.141292318701744,-0.050501815974712,0.119874417781830,0.172324821352959,0.100073821842670,-0.485188096761703,-0.103830955922604,0.014237085357308,0.106233395636082,0.137435391545296,0.041216559708118) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.034367423504591,-0.117729067802429,0.158640488982201,0.002700258512050,0.112866058945656,-0.014259519055486,0.054054606705904,-0.075763858854771,-0.130880609154701,-0.016472250223160,-0.065461494028568,0.071447156369686,0.302528023719788,-0.138156473636627,-0.176031351089478,-0.087695449590683) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.536015331745148,-0.048573423177004,0.171971499919891,-0.061455965042114,0.413476765155792,0.351358205080032,0.126740321516991,-0.060191784054041,0.106722183525562,0.048277489840984,0.114057369530201,-0.086650215089321,-0.225523054599762,0.247760385274887,-0.160271748900414,-0.092354118824005) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.118852928280830,0.065013162791729,-0.130007654428482,0.102743372321129,0.439255416393280,-0.240944176912308,-0.039825394749641,0.322507590055466,0.134837731719017,-0.049879677593708,-0.005637444555759,-0.107171036303043,0.350258439779282,-0.121947698295116,0.153500825166702,0.126886218786240) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.022255852818489,0.033078476786613,0.105024620890617,-0.015728600323200,-0.110085248947144,0.053547766059637,0.051223758608103,0.036271188408136,0.048996586352587,0.106588803231716,0.057382736355066,-0.073367625474930,0.076833121478558,-0.062426622956991,-0.186989158391953,0.022847969084978) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.151273012161255,-0.027180364355445,0.055462826043367,-0.019021475687623,-0.102937422692776,0.120219670236111,0.174238204956055,-0.121395438909531,-0.120720908045769,-0.116688467562199,0.075721532106400,-0.240648642182350,0.125940337777138,-0.208232671022415,-0.112504936754704,0.002643958199769) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.011854053474963,-0.127657473087311,0.133657589554787,-0.055203497409821,0.057258792221546,0.029466260224581,0.013607570901513,0.261762231588364,-0.118709698319435,-0.335216224193573,0.053771656006575,0.167640373110771,0.276330918073654,0.222516238689423,-0.218756452202797,0.048283793032169) * MODEL11_texOff(vec2(0,1));
res += mat4(0.042543303221464,0.011107989586890,0.071373075246811,0.053106810897589,-0.006340456660837,0.346966356039047,-0.067202545702457,0.093388028442860,0.026567922905087,-0.048903636634350,0.105015598237514,-0.105206191539764,0.082736909389496,0.060877766460180,0.043344307690859,-0.019795848056674) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.168035104870796,0.087859578430653,-0.153127670288086,0.074740968644619,0.038445863872766,-0.119369924068451,0.282704234123230,0.034897044301033,0.015280327759683,-0.053813248872757,-0.147978797554970,-0.047268163412809,-0.073045723140240,-0.012391511350870,0.123502396047115,0.021107114851475) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.001166663365439,-0.110157728195190,0.110093638300896,0.045661281794310,0.140208780765533,0.209247097373009,0.040278140455484,0.181302636861801,-0.050004873424768,-0.086915396153927,0.058003719896078,-0.104488767683506,0.086763858795166,0.026008775457740,-0.178475484251976,0.074076496064663) * MODEL11_texOff(vec2(1,1));
res += mat4(0.010099153965712,0.144185453653336,0.013051980175078,0.065959826111794,0.044049080461264,-0.068081617355347,0.005030815489590,-0.050085235387087,-0.080684557557106,-0.112874343991280,-0.011411752551794,0.062620557844639,0.097844935953617,-0.003826646832749,0.051552880555391,0.048173464834690) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.009745272807777,-0.123919449746609,-0.006378123071045,0.022303350269794,-0.120122015476227,-0.128700971603394,-0.094173848628998,-0.017375594004989,0.230673968791962,0.058572925627232,-0.175578191876411,-0.215486526489258,-0.011532290838659,0.032258629798889,0.118058800697327,0.083139479160309) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.266711652278900,0.182866111397743,0.011259458959103,-0.198710560798645,0.029812967404723,-0.141834929585457,-0.016938846558332,0.209703505039215,-0.052864722907543,0.155853033065796,-0.000789368117694,-0.253940612077713,0.039147838950157,-0.057362299412489,-0.008681850507855,0.194714948534966) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.107837475836277,-0.134503826498985,-0.192566379904747,0.066048212349415,0.007242444902658,-0.057826388627291,0.015343776904047,0.070430837571621,-0.027485545724630,0.086321502923965,0.035024221986532,-0.149033740162849,0.036061629652977,0.151185438036919,-0.033694516867399,-0.044945489615202) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.257597714662552,0.292822122573853,0.099050812423229,-0.085341513156891,-0.062026776373386,-0.078563153743744,-0.104082450270653,-0.224254831671715,0.240634232759476,0.025531772524118,-0.180957764387131,-0.173597499728203,0.110765576362610,-0.062054663896561,0.113961823284626,0.052741311490536) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.018217774108052,-0.220242679119110,-0.183293253183365,0.005163333378732,-0.055157627910376,-0.313872963190079,-0.004950326867402,0.258143842220306,0.177863612771034,0.036517098546028,-0.133897840976715,0.003492127638310,-0.023580817505717,-0.031144978478551,0.046266604214907,0.221699640154839) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.103487536311150,-0.036279536783695,-0.168813154101372,-0.104360826313496,-0.041166495531797,-0.089824810624123,0.058162152767181,0.011795987375081,-0.032396625727415,0.230159014463425,-0.088493451476097,-0.069037094712257,-0.058472860604525,0.115319445729256,0.002635886659846,-0.238922715187073) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.228266596794128,0.078406065702438,0.326988011598587,-0.052703961730003,-0.043072078377008,0.031455609947443,-0.049745738506317,0.046276353299618,-0.044940970838070,-0.045694701373577,0.040825307369232,-0.052392173558474,-0.047949902713299,-0.254876524209976,0.117880418896675,0.066659383475780) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.107513889670372,-0.242367342114449,0.087012700736523,0.130706056952477,-0.035225696861744,0.254699319601059,-0.058762207627296,0.056601889431477,0.086636528372765,0.113535337150097,0.011925738304853,-0.100581519305706,-0.036096673458815,-0.160766392946243,0.087630465626717,0.193283811211586) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.016321595758200,-0.057912241667509,-0.039291467517614,0.005626924335957) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(0.007847723551095,-0.130377992987633,0.158123612403870,0.082547008991241);
res += mat4(0.091677077114582,-0.020787140354514,-0.091645374894142,0.086518064141273,0.163808152079582,0.048214536160231,-0.134590119123459,0.167768850922585,0.043899275362492,0.112729877233505,-0.038659002631903,0.054000832140446,0.046072203665972,-0.029515493661165,0.057188335806131,0.183770924806595) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.045687377452850,0.028077965602279,-0.090938918292522,-0.063812494277954,-0.272890359163284,0.028247559443116,-0.040055088698864,0.294213354587555,-0.032314077019691,0.085017211735249,0.020837448537350,-0.255855679512024,0.063750475645065,-0.149379685521126,-0.055632572621107,0.211732670664787) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.020814817398787,-0.011513834819198,-0.031038947403431,-0.134130120277405,0.207572892308235,0.000254004000453,0.093914486467838,0.288586378097534,-0.018022183328867,-0.164855957031250,-0.087553128600121,0.031045189127326,-0.067607633769512,-0.068300731480122,-0.064625695347786,0.072017557919025) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.056245043873787,0.088414765894413,-0.145470649003983,-0.137504428625107,-0.276357829570770,0.061047527939081,-0.139570802450180,0.201764091849327,0.268596023321152,-0.059271976351738,-0.442287772893906,0.191556349396706,-0.089534983038902,-0.183123245835304,0.127516373991966,0.261983960866928) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.112004391849041,0.011971247382462,-0.084208749234676,-0.364345520734787,-0.356146246194839,0.165335118770599,-0.036209166049957,-0.062607690691948,0.138994500041008,0.083152435719967,0.089945487678051,-0.005448071286082,0.154730290174484,0.020288242027164,0.159165605902672,0.046415124088526) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.032872796058655,-0.302826136350632,0.060030817985535,-0.125656247138977,0.199441179633141,0.027550645172596,0.032197911292315,0.198994904756546,-0.339763939380646,-0.047668781131506,-0.379438251256943,0.018730862066150,-0.171408608555794,-0.139725342392921,-0.153724312782288,0.209225460886955) * MODEL7_texOff(vec2(0,1));
res += mat4(0.147401794791222,-0.038636870682240,-0.098513320088387,0.040760789066553,-0.228726103901863,-0.306112289428711,0.063127331435680,0.242673382163048,-0.095930963754654,-0.018263939768076,-0.101970002055168,-0.087284602224827,-0.153793424367905,0.219587683677673,-0.120238266885281,0.096765540540218) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.073447704315186,0.151720821857452,-0.119441851973534,-0.079592846333981,0.027331613004208,-0.175679057836533,-0.038212824612856,0.216903880238533,0.043790213763714,-0.134411722421646,-0.135325267910957,-0.125845208764076,-0.032257482409477,0.259103447198868,-0.153167873620987,-0.067271813750267) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.155443027615547,0.067347772419453,-0.073358274996281,-0.103664390742779,-0.038213644176722,-0.058852426707745,-0.048554603010416,0.124759890139103,-0.197742491960526,0.124526374042034,0.005635714624077,0.017945477738976,-0.109265476465225,0.072874687612057,0.014230011031032,0.140164002776146) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.058439623564482,0.092367328703403,-0.007776934187859,-0.086446858942509,0.008722275495529,0.169392660260201,-0.030928578227758,-0.007611049339175,-0.050893519073725,0.012537225149572,0.001484837033786,0.073219932615757,-0.109418697655201,-0.008720725774765,0.027443341910839,-0.180566355586052) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.090992644429207,-0.028024986386299,-0.050874624401331,-0.005029902793467,-0.240118041634560,0.103202149271965,-0.111676163971424,0.119020529091358,-0.017754610627890,0.006819619331509,-0.006763479206711,-0.180949404835701,0.019264139235020,-0.055600211024284,0.028546569868922,0.212346926331520) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.169646352529526,-0.057760514318943,-0.058608535677195,-0.010385701432824,0.052043702453375,-0.068164303898811,-0.055281057953835,-0.017145933583379,0.094662010669708,-0.116622596979141,-0.000945320993196,0.064153984189034,0.006079537793994,-0.004246973432600,-0.060655210167170,0.002066970104352) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.206980079412460,-0.002702319528908,0.202619358897209,-0.146173626184464,0.178863540291786,0.168270498514175,-0.007635438814759,-0.054491978138685,-0.107923723757267,-0.095062077045441,0.055475722998381,-0.052119173109531,-0.075908444821835,-0.157189682126045,0.223126307129860,-0.112390942871571) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.397142648696899,0.161283805966377,0.002433025743812,0.011868480592966,-0.186535418033600,0.019917182624340,-0.167459517717361,-0.062523238360882,-0.170026212930679,0.029550835490227,0.011857529170811,0.078787393867970,0.030932839959860,0.027122993022203,0.032705500721931,-0.495934784412384) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.216309413313866,0.096632659435272,-0.141161382198334,0.013982129283249,-0.015550201758742,0.171876534819603,0.001463003689423,0.110996514558792,0.033936131745577,-0.071741856634617,0.093454197049141,0.109408117830753,-0.051084298640490,-0.022092584520578,-0.091277308762074,-0.180192977190018) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.069757908582687,0.161212861537933,0.140395641326904,0.024598831310868,0.127296030521393,0.078575052320957,-0.044366274029016,0.127222776412964,0.000972426438238,0.181059345602989,0.007773636374623,-0.028038229793310,0.101871408522129,-0.124959565699100,0.104227282106876,0.088482216000557) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.081586800515652,-0.047709047794342,0.003006629412994,0.054435685276985,-0.228544965386391,-0.039107881486416,0.132557824254036,-0.215415850281715,-0.057301208376884,0.050727736204863,0.193654969334602,-0.021281287074089,0.284241557121277,-0.104566782712936,0.014576113782823,0.112845972180367) * MODEL8_texOff(vec2(1,0));
res += mat4(0.046750605106354,-0.210877537727356,-0.011575904674828,0.039898101240396,0.044007394462824,0.099724605679512,0.033172197639942,-0.173382893204689,0.003540375735611,-0.042722862213850,0.089272409677505,0.022297583520412,-0.251209080219269,-0.071468487381935,-0.208834454417229,-0.152778580784798) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.038978524506092,-0.024832759052515,-0.028125461190939,-0.029120707884431,0.208337023854256,-0.198163270950317,-0.075002871453762,-0.112540021538734,0.003948621917516,-0.026220597326756,-0.005188553594053,0.324527412652969,0.071213200688362,0.020424859598279,0.102443270385265,-0.064612135291100) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.080717727541924,-0.128845617175102,-0.040405940264463,-0.024026725441217,-0.056291606277227,-0.024118926376104,0.044938623905182,0.077296569943428,-0.089173264801502,0.125622615218163,0.062313605099916,0.015687350183725,-0.161237701773643,0.041161496192217,0.028972614556551,-0.007410464342684) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.038403175771236,-0.084477856755257,-0.077663093805313,-0.036176409572363,-0.066750332713127,0.003712790785357,-0.036445997655392,-0.029260667040944,0.043771944940090,-0.017085975036025,-0.010567046701908,0.110011264681816,0.011482019908726,0.055815283209085,0.022100409492850,0.028512481600046) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.475307345390320,-0.116038672626019,-0.118086688220501,-0.128794163465500,0.216335862874985,0.169482514262199,-0.172657519578934,-0.158579453825951,0.260023802518845,0.025414040312171,-0.208444431424141,0.120754778385162,-0.287094414234161,0.041153982281685,0.025633070617914,-0.097409293055534) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.156473442912102,-0.131455048918724,0.182425305247307,-0.120392687618732,-0.263867795467377,0.070296846330166,0.104328855872154,-0.222383856773376,-0.238440409302711,-0.067904740571976,-0.022084483876824,0.217264786362648,0.078186780214310,-0.159882634878159,0.042702417820692,0.008219172246754) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.034256815910339,0.057022135704756,-0.126503691077232,-0.052264120429754,0.128716453909874,-0.095220260322094,0.184548109769821,-0.259304553270340,0.158680737018585,-0.004211595747620,0.197879433631897,-0.012097552418709,-0.093293100595474,0.039502423256636,-0.179578274488449,-0.101739078760147) * MODEL9_texOff(vec2(0,1));
res += mat4(0.101183399558067,-0.177395954728127,-0.002711699111387,-0.037288971245289,-0.215266898274422,0.006991481408477,-0.062721893191338,-0.029724832624197,0.321242153644562,-0.047314707189798,-0.101799577474594,0.014920591376722,-0.272298336029053,0.005060493946075,0.020921465009451,0.101476684212685) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.120688587427139,0.211657077074051,0.112019598484039,0.075355581939220,0.066833056509495,0.086405366659164,-0.250263929367065,-0.110388107597828,-0.134704321622849,-0.007608530577272,0.088024102151394,0.163056015968323,0.098004162311554,0.048995502293110,-0.097866125404835,-0.184274137020111) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.142572745680809,0.039628244936466,0.017983395606279,-0.091787718236446,0.098903387784958,0.004734374582767,-0.140611737966537,0.035017468035221,0.037330981343985,0.062476042658091,-0.026413980871439,0.000213138016989,0.075683645904064,-0.182111322879791,-0.042830068618059,0.012485274113715) * MODEL9_texOff(vec2(1,1));
res += mat4(0.188183397054672,0.025680871680379,-0.001643204712309,0.144997835159302,-0.095636531710625,0.024316020309925,-0.028705412521958,-0.032459639012814,0.083334267139435,-0.071737833321095,0.055567931383848,-0.110205240547657,0.060495190322399,0.024500736966729,0.071868516504765,0.097715131938457) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.069472976028919,0.066912673413754,0.070695362985134,-0.106732822954655,0.161491245031357,-0.034264959394932,0.001415379578248,0.048167817294598,0.096320293843746,-0.147369176149368,0.038451675325632,-0.043386992067099,-0.066273950040340,0.232921198010445,0.121960155665874,-0.312819391489029) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.021156769245863,-0.078708969056606,0.092084154486656,-0.020412644371390,-0.059482000768185,-0.036204446107149,0.016538225114346,-0.049314506351948,-0.028928413987160,0.066585607826710,-0.001335220062174,-0.297950863838196,-0.008033641614020,0.028304653242230,0.011090184561908,-0.122995652258396) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.036446474492550,-0.127719521522522,-0.223947376012802,-0.002333508105949,0.136164560914040,-0.040551334619522,-0.055059324949980,-0.015893790870905,0.039424538612366,-0.061308946460485,0.299668997526169,-0.262568175792694,0.044789623469114,0.172306045889854,0.086061060428619,0.080024987459183) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.101104170084000,-0.286000460386276,0.424985736608505,0.182230293750763,0.090872049331665,-0.257141023874283,0.315953105688095,0.203808516263962,0.180468797683716,0.007076245266944,0.154879823327065,-0.366251051425934,-0.043419722467661,0.109475523233414,0.104890435934067,-0.154716864228249) * MODEL10_texOff(vec2(0,0));
res += mat4(0.043316069990396,-0.124273777008057,-0.000298992701573,-0.046388410031796,-0.162368088960648,0.023001478984952,-0.247517153620720,0.001525318250060,0.148412600159645,0.145612284541130,-0.091340757906437,-0.472329944372177,-0.005745530128479,0.124795079231262,0.091138295829296,-0.033694967627525) * MODEL10_texOff(vec2(0,1));
res += mat4(0.094226419925690,0.131664872169495,-0.102062284946442,-0.213302940130234,0.152884632349014,0.066632583737373,-0.057603951543570,0.093127213418484,0.033519864082336,-0.015746328979731,0.038751147687435,-0.166907727718353,-0.189590260386467,0.150673553347588,0.115630857646465,-0.092216961085796) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.037987750023603,0.401001870632172,-0.422858029603958,-0.042297560721636,0.174512878060341,0.017961665987968,0.120431222021580,0.215900331735611,0.132602572441101,0.050295185297728,-0.041747778654099,-0.215759173035622,-0.200264960527420,-0.069596961140633,0.303822487592697,0.116775088012218) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.011878453195095,0.212091609835625,0.022566016763449,0.200490891933441,-0.259667038917542,-0.022582078352571,-0.015950957313180,-0.174992173910141,0.162496864795685,-0.207126364111900,-0.085327759385109,-0.043312966823578,0.046454053372145,0.210596963763237,0.094878852367401,0.072170503437519) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.067871473729610,0.010648382827640,0.042062617838383,-0.026976551860571,-0.206247851252556,0.247641280293465,0.043844524770975,-0.025322746485472,-0.067746140062809,-0.120486773550510,-0.076492972671986,0.051250401884317,-0.058300394564867,0.013229161500931,0.082397125661373,0.211497440934181) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.141881570219994,-0.185939073562622,0.072418361902237,0.079233892261982,0.089806035161018,0.077194675803185,-0.101152159273624,0.016443250700831,0.047900006175041,0.005728100892156,-0.024339947849512,0.060822475701571,0.319056928157806,0.068942524492741,0.131790459156036,-0.117918148636818) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.029372220858932,0.091908566653728,-0.059741523116827,0.119222544133663,0.075736418366432,0.134524941444397,0.077230162918568,-0.154240131378174,-0.034420989453793,-0.063536748290062,-0.034901741892099,-0.131070718169212,-0.162010610103607,0.193785682320595,-0.102209761738777,-0.096779666841030) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.039083428680897,0.016119567677379,-0.097142606973648,0.208779573440552,0.180070638656616,-0.133516550064087,0.064368009567261,-0.085784353315830,-0.685546875000000,0.077874243259430,-0.133213341236115,-0.001355539774522,-0.090960957109928,0.020103620365262,-0.051085509359837,-0.006519259419292) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.003882194170728,0.272460401058197,0.113716363906860,-0.014318927191198,0.030674915760756,-0.451676934957504,0.018966365605593,0.158146768808365,0.136580958962440,-0.288681358098984,-0.076097674667835,-0.089412055909634,0.111321531236172,0.013993290252984,-0.297603040933609,0.004604143556207) * MODEL11_texOff(vec2(0,0));
res += mat4(0.064739242196083,0.125253498554230,-0.002240212168545,-0.017324171960354,0.009580371901393,-0.095931179821491,-0.089448899030685,-0.059957724064589,-0.056405328214169,-0.055404085665941,0.176887482404709,-0.082169368863106,0.018280731514096,0.252914398908615,0.043287508189678,0.207058757543564) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.069858320057392,0.112175390124321,-0.048412393778563,0.006376199424267,0.169966772198677,-0.041305091232061,-0.039758767932653,-0.135416194796562,-0.229759544134140,-0.015603927895427,-0.074848547577858,-0.128031775355339,0.074494153261185,0.011142752133310,0.077701814472675,0.127408191561699) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.041125521063805,-0.022040186449885,-0.168410673737526,-0.097857676446438,-0.068874962627888,-0.001235754694790,-0.070750810205936,-0.010627261362970,0.094655387103558,-0.291925877332687,-0.142825588583946,-0.183482766151428,-0.020521823316813,-0.080690272152424,0.246218457818031,0.237637430429459) * MODEL11_texOff(vec2(1,0));
res += mat4(0.063945777714252,0.189750626683235,0.014325371012092,0.090363517403603,0.153431028127670,-0.139618679881096,0.015141665004194,0.133571103215218,0.036333277821541,-0.001569128595293,-0.058336712419987,-0.012964233756065,0.019445238634944,0.002320809988305,0.085579909384251,0.035421404987574) * MODEL11_texOff(vec2(1,1));
res += mat4(0.242322012782097,-0.093135960400105,-0.076598770916462,-0.000526948424522,0.035488978028297,0.008311216719449,0.008189200423658,-0.069321863353252,0.111268177628517,0.049091048538685,0.048811685293913,0.000826133997180,-0.050687812268734,0.030609771609306,-0.037695974111557,0.008924127556384) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.210688084363937,-0.064611032605171,-0.110090509057045,-0.052930548787117,-0.021658865734935,0.158396363258362,0.078512534499168,0.006915749050677,-0.064800925552845,0.089902967214584,0.049017135053873,-0.273272871971130,-0.006796633359045,0.097433254122734,-0.042542628943920,0.160774305462837) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.060709722340107,-0.034011289477348,-0.093655027449131,-0.022962482646108,0.024293988943100,0.069363594055176,-0.005770591553301,-0.014360716566443,-0.043739043176174,-0.085587188601494,0.078675322234631,-0.089977480471134,0.063853360712528,-0.026854613795877,-0.004956016782671,0.088577888906002) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.166999265551567,-0.056649778038263,0.047535233199596,0.020642958581448,-0.118413314223289,-0.139139741659164,0.012850861996412,-0.096311092376709,-0.104586727917194,-0.241848513484001,-0.011012162081897,0.053888067603111,-0.023977871984243,0.107298351824284,-0.040274471044540,-0.097425855696201) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.089986369013786,0.281386852264404,-0.259714215993881,0.075633838772774,0.182284280657768,-0.506022095680237,0.141828984022141,0.049418289214373,0.165913090109825,-0.212232753634453,-0.104203194379807,-0.144003301858902,-0.101004116237164,0.154690712690353,-0.035248890519142,0.130925580859184) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.155912920832634,0.074361160397530,-0.060315646231174,-0.083433166146278,-0.123475417494774,-0.034942872822285,-0.022035652771592,0.026356026530266,-0.140933692455292,0.168967545032501,-0.010854717344046,0.051560968160629,0.111331671476364,-0.024859223514795,-0.057697609066963,0.059881959110498) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.073331303894520,-0.118510596454144,0.041262887418270,0.119146384298801,0.088121280074120,0.150356128811836,0.003207380417734,-0.000038833142753,-0.173713862895966,-0.268268615007401,-0.069815561175346,0.047524183988571,-0.495950877666473,-0.199187487363815,-0.050512317568064,0.068300843238831) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.074921302497387,-0.016794178634882,0.152974888682365,0.095881164073944,0.052519887685776,0.322543680667877,0.165751963853836,0.025194006040692,0.089397959411144,-0.307142972946167,0.147609382867813,0.025223989039660,0.047965064644814,-0.135548487305641,-0.114044979214668,-0.029021793976426) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.061175853013992,-0.020376546308398,0.008140749298036,-0.009342523291707,-0.074455834925175,0.165768578648567,-0.030569246038795,0.044171109795570,0.065266273915768,0.128311797976494,0.038919281214476,-0.000730954867322,0.039735574275255,-0.040380466729403,-0.128253951668739,-0.086149670183659) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.131980165839195,-0.145576938986778,0.909065723419189,-0.018632689490914) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.300328642129898,-0.195893138647079,-0.054842129349709,-0.040009617805481);
res += mat4(-0.191767036914825,-0.016821967437863,-0.049184706062078,-0.027111796662211,0.241197645664215,0.294043153524399,-0.019975991919637,0.014180183410645,0.066868655383587,0.043373532593250,-0.103243097662926,0.121121965348721,-0.079435825347900,0.073754802346230,0.013068350963295,0.072329901158810) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.370388507843018,0.166164487600327,0.020543755963445,-0.076786980032921,0.001737034064718,0.078576907515526,-0.065725646913052,0.120743423700333,-0.273020684719086,-0.219063237309456,-0.000879662809893,-0.134834438562393,-0.036207951605320,-0.017835821956396,-0.050082873553038,0.081669040024281) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.093835771083832,0.057715240865946,0.122087568044662,-0.033298224210739,-0.178021863102913,-0.047963466495275,-0.133043721318245,0.057209618389606,0.026767736300826,-0.166854709386826,0.074753776192665,0.091790229082108,0.032146360725164,-0.110638834536076,0.087568767368793,0.075751766562462) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.221505537629128,-0.116452693939209,-0.044505767524242,0.013487287797034,-0.034622844308615,-0.152736976742744,0.185714095830917,-0.062376394867897,0.123400896787643,0.176668703556061,0.071307502686977,-0.248192816972733,-0.030746567994356,-0.071643002331257,0.031940806657076,-0.025657624006271) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.981947243213654,0.531773924827576,-0.224405631422997,0.214745074510574,0.036442406475544,0.053872589021921,0.121217034757137,-0.020445497706532,-0.531495392322540,-0.438269257545471,-0.726838529109955,0.386452585458755,0.017097963020205,-0.059315193444490,-0.021985534578562,-0.052194692194462) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.229881718754768,-0.384353786706924,0.192715451121330,0.051039628684521,-0.251282662153244,-0.057797811925411,0.031202135607600,-0.020575102418661,0.107164487242699,-0.094341151416302,0.418574124574661,0.236385434865952,0.023552874103189,-0.074866898357868,-0.101900137960911,0.152633443474770) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.069765441119671,0.071135044097900,0.030550800263882,-0.070199199020863,0.194774642586708,-0.208031982183456,0.054120395332575,0.069756247103214,0.009757933206856,0.085352256894112,0.025932358577847,-0.062836349010468,-0.038375429809093,-0.023588137701154,0.010422270745039,0.177075713872910) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.243914902210236,0.232631355524063,0.017788972705603,0.044964019209146,-0.042822994291782,0.066489942371845,0.023859990760684,0.095241799950600,0.036998160183430,-0.009118547663093,-0.017565930262208,0.104987658560276,0.149650961160660,0.005152384284884,-0.079894967377186,0.166601076722145) * MODEL7_texOff(vec2(1,0));
res += mat4(0.132995799183846,0.010710226371884,0.057106740772724,0.038579903542995,-0.104299619793892,-0.045826345682144,0.038182456046343,0.176008790731430,0.012390873394907,-0.065292380750179,-0.110001116991043,-0.182965815067291,-0.076488628983498,-0.050422389060259,0.016143040731549,-0.055845528841019) * MODEL7_texOff(vec2(1,1));
res += mat4(0.008035880513489,0.065635487437248,-0.028401991352439,-0.185413166880608,0.286758929491043,0.196942612528801,-0.038810074329376,-0.008449375629425,0.127074390649796,0.006924311630428,0.062600702047348,-0.007999961264431,0.099734850227833,-0.026070185005665,0.080608904361725,-0.104414589703083) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.164043039083481,0.113962866365910,0.006624450907111,0.012575980275869,0.057851485908031,-0.180078893899918,0.225537911057472,-0.086401171982288,0.073842920362949,0.028974160552025,-0.045185353606939,-0.029962480068207,0.146605148911476,-0.016544129699469,0.140343129634857,-0.030549384653568) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.095534376800060,0.030020177364349,0.010131717659533,0.113679111003876,0.098240762948990,-0.081651814281940,0.141020119190216,-0.040144219994545,0.048525087535381,0.015252289362252,0.131423115730286,-0.059522371739149,0.115097865462303,-0.076561935245991,0.048824608325958,-0.091378390789032) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.315471053123474,-0.148757308721542,-0.154921695590019,0.069083310663700,-0.016249170526862,0.322369962930679,-0.107164599001408,0.077717550098896,-0.054663348942995,-0.131143048405647,-0.142203390598297,-0.083051666617393,-0.291983544826508,-0.144857093691826,-0.004066509660333,0.086623422801495) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.126502066850662,-0.055563442409039,-0.036039080470800,0.021373219788074,0.217258781194687,-0.077470228075981,-0.162929370999336,0.297905772924423,0.028328364714980,0.013807410374284,-0.088133893907070,0.090830914676189,0.054072778671980,-0.138287737965584,0.223236799240112,-0.210946410894394) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.030394941568375,0.077276639640331,-0.086600385606289,0.047403540462255,0.170487016439438,-0.170530289411545,0.230719238519669,-0.115635536611080,0.054128911346197,0.065061166882515,0.079176798462868,-0.039332393556833,-0.063065610826015,-0.094358175992966,0.146040856838226,-0.149676576256752) * MODEL8_texOff(vec2(0,1));
res += mat4(0.103462666273117,-0.107831150293350,-0.023607876151800,0.050371207296848,-0.066814862191677,0.185468807816505,-0.152674287557602,0.031729836016893,0.144878476858139,0.050964359194040,-0.008937587030232,0.126827433705330,0.017894485965371,0.051828034222126,-0.084803260862827,-0.068254560232162) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.048110295087099,0.000143664190546,0.037456315010786,0.001874955021776,0.128929361701012,-0.018243676051497,0.041432801634073,-0.011830335482955,-0.082142129540443,-0.247105076909065,-0.302080750465393,0.351394951343536,0.030936896800995,-0.030124550685287,0.054309524595737,-0.234510451555252) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.052412264049053,-0.220441371202469,-0.049201309680939,-0.214517593383789,0.023121370002627,-0.093676291406155,-0.028308397158980,0.022573856636882,-0.013413257896900,-0.114973835647106,0.063751287758350,0.078819140791893,0.137871116399765,0.104553192853928,0.037604879587889,0.008426385000348) * MODEL8_texOff(vec2(1,1));
res += mat4(0.152476415038109,-0.176810756325722,0.019484693184495,-0.031280323863029,-0.143610715866089,0.080052398145199,0.048170324414968,-0.218259394168854,-0.047316811978817,-0.003190512536094,-0.102573096752167,0.107504598796368,0.099382840096951,0.030691709369421,-0.120614536106586,0.070795640349388) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.034629009664059,-0.082004606723785,0.020590992644429,-0.076053313910961,0.063274316489697,-0.165516644716263,-0.020018883049488,0.038219057023525,-0.276087313890457,0.116204604506493,-0.202085003256798,0.054859682917595,-0.157579287886620,-0.037665385752916,-0.066138543188572,-0.209965720772743) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.138426870107651,-0.084642700850964,0.048259738832712,0.013352416455746,-0.028194900602102,0.061615087091923,0.000364482315490,-0.110895067453384,0.010893528349698,-0.100191265344620,-0.024841178208590,-0.081766322255135,0.021437643095851,0.024505794048309,-0.108862921595573,0.046619322150946) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.173092603683472,-0.094829410314560,0.197968393564224,-0.207369744777679,0.072837248444557,0.266908913850784,0.068859495222569,-0.066708743572235,-0.123486280441284,0.294472396373749,-0.006213806569576,0.097958534955978,0.223229393362999,0.220609828829765,0.174965590238571,-0.029782537370920) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.043846927583218,-0.041152618825436,-0.167253375053406,0.016588479280472,-0.007845435291529,0.132377162575722,0.077623106539249,0.015323389321566,-0.220462322235107,0.094900846481323,-0.108822435140610,0.117612354457378,-0.103699989616871,-0.200475320219994,-0.072421446442604,-0.121418565511703) * MODEL9_texOff(vec2(0,0));
res += mat4(0.106355771422386,0.137691617012024,-0.171867653727531,0.184038728475571,-0.104286894202232,-0.101910285651684,-0.091145977377892,-0.364181965589523,0.055551394820213,-0.152850031852722,0.051327608525753,0.134972512722015,0.050386946648359,0.193779632449150,0.117239624261856,0.032509237527847) * MODEL9_texOff(vec2(0,1));
res += mat4(0.122048683464527,0.047583833336830,0.023794464766979,0.036673359572887,-0.024943212047219,-0.007513507269323,0.027155842632055,-0.057718437165022,-0.035289529711008,0.044747956097126,-0.128241062164307,-0.001253067166544,0.022687355056405,-0.062934152781963,-0.027501821517944,-0.089287973940372) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.001830826164223,-0.009575771167874,0.017350107431412,0.012042216025293,-0.015244961716235,0.079867765307426,0.050390314310789,0.005894852336496,-0.053214080631733,0.051125016063452,-0.159921243786812,0.138818070292473,0.053107466548681,-0.078199945390224,0.102314002811909,0.136665537953377) * MODEL9_texOff(vec2(1,0));
res += mat4(0.105131685733795,-0.017566552385688,0.019553136080503,-0.072689130902290,0.008650828152895,0.027912545949221,-0.040983352810144,-0.112119190394878,0.160257413983345,0.032794542610645,-0.157628878951073,0.239216923713684,-0.141588181257248,0.001734843594022,-0.193447172641754,-0.022647019475698) * MODEL9_texOff(vec2(1,1));
res += mat4(0.158561304211617,0.108406782150269,0.024834996089339,-0.114053748548031,0.033797197043896,0.056790657341480,0.018810233101249,0.015551559627056,-0.420214027166367,-0.126418456435204,-0.028413226827979,0.001833423739299,0.208465144038200,-0.051722973585129,0.102443218231201,0.117310725152493) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.245312094688416,0.008001320064068,-0.106926307082176,0.009890964254737,-0.097033254802227,-0.008154854178429,0.126900568604469,-0.066550895571709,-0.457563221454620,0.180864900350571,-0.046768564730883,0.161360919475555,-0.021924911066890,0.091635189950466,-0.028776472434402,-0.260472834110260) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.011771623045206,-0.079803831875324,0.110590443015099,-0.070494018495083,0.086295276880264,-0.030185194686055,-0.017107827588916,0.041877407580614,-0.009318081662059,0.042030043900013,-0.008331580087543,0.001118361367844,0.157384991645813,0.078804023563862,0.049213431775570,0.007273029070348) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.080237239599228,0.272029608488083,0.097600117325783,-0.309270709753036,0.035501342266798,0.337955921888351,-0.071662954986095,-0.073482871055603,-0.543432652950287,-0.032231666147709,-0.019062094390392,0.127026706933975,0.137990862131119,-0.126468256115913,-0.173889949917793,0.125733479857445) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.295325785875320,-0.252997070550919,-0.378411591053009,0.028911082074046,-0.212102383375168,-0.326288282871246,-0.236540809273720,-0.090287178754807,-0.293305605649948,0.044956162571907,0.011039968580008,0.011553133837879,-0.035081475973129,-0.137393936514854,0.079854860901833,0.219880044460297) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.052159413695335,0.013235623948276,-0.092587798833847,0.033300194889307,0.098649345338345,0.175639316439629,0.052428659051657,0.195773631334305,-0.147739633917809,0.218147993087769,-0.387698411941528,0.143293589353561,0.258853703737259,0.053040441125631,0.030919020995498,0.035979386419058) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.191759079694748,0.062087256461382,0.062938854098320,0.037106715142727,0.201908573508263,0.050059340894222,-0.073577895760536,-0.000966719817370,-0.142392650246620,-0.026751909404993,-0.123267389833927,0.130845129489899,0.081001393496990,0.004912410862744,0.200917318463326,0.076516494154930) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.103142566978931,0.111535474658012,-0.069437548518181,0.471601724624634,0.024235280230641,-0.032464813441038,0.002081900835037,-0.012845030985773,-0.198566913604736,0.098981514573097,-0.112168319523335,0.046434476971626,0.076024740934372,-0.020250286906958,0.395435482263565,-0.020779455080628) * MODEL10_texOff(vec2(1,0));
res += mat4(0.081885300576687,-0.025475710630417,0.091668114066124,0.008969141170382,0.136652424931526,-0.026934878900647,-0.072488337755203,0.072103872895241,-0.096880868077278,0.149050712585449,0.065986819565296,-0.031202653422952,0.125936642289162,0.041665468364954,0.064520008862019,-0.020381366834044) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.112022824585438,-0.018948329612613,0.006139181554317,0.025642162188888,0.037593979388475,-0.159991443157196,0.010531950742006,0.103090427815914,0.027800833806396,0.118886224925518,-0.042313057929277,0.010692859999835,0.079899728298187,-0.133560433983803,-0.020583974197507,0.185240864753723) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.085140131413937,-0.101996287703514,-0.401651352643967,0.273623943328857,0.074480272829533,-0.086864307522774,0.234243050217628,-0.225866347551346,0.020794384181499,-0.081425398588181,-0.043376103043556,-0.085887521505356,-0.066810630261898,-0.161345928907394,-0.103255666792393,0.029115052893758) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.030182221904397,0.057139258831739,-0.112655982375145,0.136530667543411,-0.123483873903751,0.232266411185265,0.115664057433605,-0.027808863669634,-0.088500790297985,0.096472576260567,0.034529637545347,-0.056171555072069,0.022290205582976,0.191995784640312,-0.046342652291059,0.156691715121269) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.067300453782082,0.092473603785038,-0.089683577418327,-0.049826443195343,0.100296266376972,0.089809164404869,-0.050321143120527,0.017596147954464,0.117296464741230,0.263614237308502,-0.033124424517155,-0.142177805304527,-0.174245640635490,0.094229206442833,0.102605231106281,-0.021439081057906) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.107659086585045,-0.090825155377388,0.235297933220863,-0.316648304462433,-0.150792315602303,0.089473217725754,0.074984878301620,-0.050699520856142,0.021056151017547,0.175470530986786,0.189518153667450,-0.704834878444672,0.197688415646553,-0.045625515282154,-0.059337776154280,0.198534592986107) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.027113560587168,0.015376661904156,-0.057925809174776,-0.005353995598853,-0.042722921818495,0.015833120793104,-0.067273370921612,-0.046352665871382,-0.041039343923330,0.076318405568600,0.006109268870205,-0.081228412687778,-0.017330074682832,0.045224215835333,0.043068304657936,0.020907472819090) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.092187479138374,-0.057789500802755,0.054464619606733,0.083604156970978,0.070169843733311,0.044440880417824,0.179553464055061,-0.103129059076309,-0.063849456608295,0.012089529074728,0.025239503011107,-0.051210101693869,0.146999627351761,0.097827456891537,0.045912820845842,-0.075634270906448) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.057685837149620,0.008293586783111,-0.029850535094738,0.274764060974121,-0.075130492448807,0.152204215526581,0.226823195815086,-0.194118082523346,0.063220366835594,0.081593848764896,-0.045974265784025,0.105071589350700,-0.116146676242352,-0.018350517377257,0.015418676659465,-0.148763626813889) * MODEL11_texOff(vec2(1,0));
res += mat4(0.031744904816151,-0.033560033887625,0.071691893041134,-0.051367070525885,0.054723620414734,0.098794907331467,0.039735492318869,-0.082515448331833,0.064393714070320,0.056393969804049,-0.070810332894325,0.123506002128124,0.017273079603910,0.043551146984100,0.028709862381220,0.008052773773670) * MODEL11_texOff(vec2(1,1));
res += mat4(0.054869350045919,-0.135712683200836,-0.091135866940022,-0.039107050746679,-0.023621607571840,-0.079352624714375,-0.037986680865288,-0.052541531622410,0.186563625931740,0.061290428042412,-0.005655213724822,-0.156976580619812,-0.083763986825943,0.014097740873694,-0.011847847141325,0.029961476102471) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.015321328304708,0.287559896707535,-0.157290473580360,0.268067061901093,0.086463242769241,-0.208476319909096,0.578771233558655,-0.062070444226265,0.041314482688904,0.165410175919533,-0.164916202425957,-0.050701174885035,-0.036968313157558,-0.050245527178049,0.082292854785919,-0.001016758033074) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.016213113442063,0.012852606363595,-0.105575606226921,0.172949284315109,-0.015072968788445,0.269315868616104,-0.015408624894917,0.197636812925339,0.114592663943768,-0.101468876004219,0.019761251285672,-0.074896499514580,-0.002181412652135,0.036431785672903,0.032853402197361,-0.041125722229481) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.085413441061974,0.105512030422688,-0.031313311308622,0.110837690532207,-0.119801394641399,0.039759472012520,-0.011234157718718,0.051129028201103,0.037298195064068,-0.550851464271545,0.093341626226902,-0.022779082879424,-0.063123993575573,-0.054507944732904,-0.056936927139759,0.013284955173731) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.119009755551815,-0.263653725385666,0.111404888331890,0.088125973939896,0.024722553789616,-0.281646400690079,0.052139632403851,-0.096772409975529,0.093775510787964,-0.150021061301231,0.220252498984337,-0.351491540670395,-0.090071424841881,-0.148308798670769,-0.047258481383324,-0.066189080476761) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.056058689951897,0.052987471222878,0.072975866496563,-0.023303164169192,-0.003686685347930,0.201853036880493,0.036476302891970,0.253059238195419,0.149461194872856,-0.022300919517875,-0.106305412948132,0.224520266056061,-0.099658980965614,0.030405856668949,0.065785907208920,-0.032337784767151) * MODEL12_texOff(vec2(0,1));
res += mat4(0.149121731519699,0.024506328627467,-0.094480074942112,-0.006108515895903,-0.073476560413837,-0.050835888832808,0.059410952031612,0.046373132616282,0.060211069881916,0.005681136157364,0.048222929239273,0.004308360628784,0.117815636098385,-0.265138596296310,0.075851440429688,-0.077464409172535) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.090471394360065,-0.193583011627197,-0.045774202793837,-0.282324403524399,0.097147114574909,0.186456695199013,0.042976383119822,0.162571251392365,0.024139342829585,-0.098623812198639,0.037392035126686,-0.158343821763992,-0.214601278305054,-0.163877785205841,0.241646453738213,-0.460101455450058) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.114629447460175,0.019528424367309,0.004799546208233,-0.132804825901985,-0.095502786338329,-0.053846314549446,0.095891043543816,-0.047441586852074,-0.014785679057240,-0.092159144580364,-0.123982325196266,-0.016965664923191,0.058810763061047,0.060796082019806,-0.038590688258410,0.011120124720037) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.023598637431860,0.088286302983761,0.186588034033775,-0.026228295639157) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(0.006917560473084,0.158633872866631,0.068330369889736,0.017875593155622);
res += mat4(-0.064882375299931,0.019868064671755,-0.003711580764502,-0.059304047375917,-0.225429251790047,-0.011209379881620,-0.154847830533981,-0.016226239502430,-0.076481714844704,0.041856914758682,-0.004413230810314,-0.046198327094316,0.127694770693779,0.040161885321140,0.160138934850693,-0.025904806330800) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.050433266907930,0.051038000732660,0.083178482949734,0.073859609663486,0.240011155605316,-0.098293989896774,-0.124070994555950,-0.024521540850401,0.037595808506012,0.109692707657814,-0.080518066883087,0.075720816850662,-0.097960598766804,0.020899368450046,0.117401756346226,0.153292089700699) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.045816313475370,-0.093220539391041,0.068106137216091,0.017150545492768,0.122928619384766,-0.093502655625343,-0.048004403710365,-0.047495055943727,0.171266868710518,0.100428506731987,-0.086733840405941,0.017537955194712,0.062944285571575,0.014673414640129,0.063099667429924,-0.000644631450996) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.004413197282702,-0.202297106385231,-0.061340291053057,-0.070779085159302,0.176500171422958,-0.137226000428200,-0.181457251310349,-0.038638092577457,-0.072571702301502,-0.242630377411842,-0.067411914467812,-0.176441684365273,-0.018720339983702,0.102791257202625,0.256540834903717,0.064804837107658) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.404627263545990,0.394042521715164,-0.016477044671774,-0.019084576517344,0.255580425262451,-0.081450499594212,-0.315881639719009,-0.141458690166473,0.040809333324432,0.154171109199524,0.048626936972141,0.271620213985443,-0.034810435026884,0.247896328568459,0.041236743330956,-0.102774947881699) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.190491259098053,-0.247883290052414,-0.133339762687683,0.188921883702278,0.099344424903393,-0.088309668004513,0.014112945646048,-0.095410227775574,-0.344392329454422,-0.031148701906204,-0.167122155427933,-0.126537308096886,-0.000663642131258,0.011657052673399,-0.115100786089897,0.155554801225662) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.046763792634010,0.009550184011459,0.092919625341892,0.018884180113673,0.113671526312828,0.061344124376774,0.255487233400345,0.085113622248173,-0.112140677869320,0.097820274531841,0.009982048533857,0.035879116505384,0.001587021746673,0.041127685457468,-0.382498443126678,-0.002822193317115) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.045010019093752,-0.033541720360518,-0.136281222105026,-0.003396400017664,0.088176541030407,-0.051492821425200,0.138803929090500,-0.025603964924812,0.017289454117417,-0.083342552185059,-0.232384204864502,0.033325947821140,0.009614780545235,0.009937290102243,-0.771733462810516,0.015991130843759) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.089203551411629,0.010894568637013,-0.048174530267715,0.057090189307928,0.145488098263741,-0.114679999649525,-0.105553112924099,-0.083720676600933,0.165581643581390,0.011140694841743,-0.069667950272560,-0.010437742806971,0.183191955089569,0.035289268940687,-0.440147697925568,-0.039786726236343) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.003255740273744,-0.054920993745327,0.078488238155842,-0.100065544247627,0.097330957651138,-0.060442950576544,0.199492663145065,-0.143949210643768,-0.038440853357315,-0.028549596667290,0.076521754264832,-0.048203743994236,0.092498116195202,-0.067378528416157,-0.025072323158383,-0.002713302848861) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.011353789828718,-0.102035582065582,0.072546519339085,-0.009827517904341,0.112462386488914,0.044247508049011,0.110111586749554,-0.151957839727402,0.009251305833459,-0.072359867393970,0.011726361699402,-0.095917545258999,0.099766671657562,-0.106743961572647,0.053492639213800,-0.029687220230699) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.037941299378872,-0.033181156963110,0.000719721720088,-0.022678472101688,-0.151752278208733,-0.056953150779009,0.076107412576675,0.012292850762606,-0.014712863601744,-0.106268785893917,0.102373071014881,-0.088332206010818,0.164051353931427,-0.064523942768574,-0.064324431121349,0.021507512778044) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.033514626324177,0.075968675315380,0.003818282857537,-0.013989896513522,-0.120702803134918,0.245272576808929,-0.154164329171181,0.014673151075840,-0.033027864992619,-0.035307254642248,0.196822285652161,-0.122134409844875,-0.000758717709687,0.092195175588131,-0.018265064805746,0.122731909155846) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.098698265850544,-0.038201771676540,0.118998050689697,-0.073306687176228,-0.209117978811264,-0.011375953443348,-0.066848963499069,0.093935742974281,-0.112747281789780,-0.040448497980833,0.036368288099766,-0.049182750284672,-0.192253649234772,-0.124714814126492,-0.033899009227753,0.091638669371605) * MODEL8_texOff(vec2(0,0));
res += mat4(0.038805563002825,-0.042744312435389,-0.061030037701130,0.032029841095209,0.006349267438054,0.026108657941222,0.000114231115731,0.112930759787560,0.015966756269336,0.058391384780407,0.201279446482658,0.096552103757858,0.037457522004843,-0.108700647950172,0.084217019379139,0.004434603732079) * MODEL8_texOff(vec2(0,1));
res += mat4(0.016191573813558,0.148577108979225,-0.096764288842678,0.020787108689547,0.004183619283140,-0.107130363583565,0.002337471814826,-0.004121693782508,-0.063090793788433,0.102225869894028,-0.039023559540510,0.014107628725469,0.029237505048513,0.030585002154112,0.039639826864004,0.082052871584892) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.002085550455377,-0.102683588862419,-0.311932474374771,-0.112977944314480,0.027279544621706,0.136425748467445,-0.253588795661926,-0.054315961897373,-0.052248772233725,0.129766255617142,-0.415603935718536,0.173431351780891,-0.158071279525757,0.032659091055393,0.056152157485485,0.144485637545586) * MODEL8_texOff(vec2(1,0));
res += mat4(0.200624689459801,-0.121722690761089,-0.019558455795050,-0.120351664721966,-0.030014215037227,-0.040720239281654,-0.134831428527832,0.045609958469868,0.067835532128811,-0.000964441976976,0.053565498441458,0.041615311056376,-0.046261541545391,-0.048187557607889,-0.043443944305182,0.142314448952675) * MODEL8_texOff(vec2(1,1));
res += mat4(0.034950062632561,0.000237589367316,0.026461955159903,-0.101976022124290,0.015181861817837,-0.036224924027920,0.047983888536692,0.055947970598936,-0.050476025789976,0.104245498776436,0.009658755734563,0.078160315752029,0.169836938381195,0.056260306388140,-0.143818765878677,0.022749720141292) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.138221815228462,0.056187145411968,0.228332772850990,0.095136463642120,-0.160018160939217,0.044927332550287,0.137050628662109,0.040008366107941,0.206837356090546,-0.022920703515410,0.040875904262066,-0.156186014413834,-0.275353223085403,0.086527451872826,-0.095533207058907,-0.046562004834414) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.033640593290329,0.006992948707193,0.114534646272659,0.057368841022253,-0.151488021016121,-0.083630904555321,-0.007045745383948,0.094311416149139,0.139035537838936,-0.084932126104832,0.064855352044106,0.016660856083035,-0.008618280291557,-0.045343399047852,-0.206454098224640,-0.023903690278530) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.303180754184723,-0.180800735950470,0.025638544932008,-0.091783411800861,-0.033902790397406,-0.121082685887814,-0.081453979015350,-0.111996717751026,0.056589730083942,-0.123079352080822,0.034587178379297,-0.072558790445328,0.117732234299183,0.194124579429626,0.008411405608058,0.401998311281204) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.134313687682152,-0.042620312422514,-0.038187224417925,-0.135846555233002,-0.151396542787552,0.263914167881012,0.056601140648127,0.232536420226097,0.010187037289143,0.065743774175644,-0.141663581132889,0.197657853364944,0.109023377299309,-0.303970783948898,0.238299369812012,-0.249067902565002) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.177415281534195,0.002551400335506,-0.001912437262945,0.193144619464874,-0.058948494493961,0.120207168161869,0.152309626340866,0.019952639937401,0.042481236159801,0.074963353574276,-0.058014295995235,-0.078213594853878,0.043907754123211,-0.094619356095791,-0.123631313443184,-0.014571252278984) * MODEL9_texOff(vec2(0,1));
res += mat4(0.062154252082109,-0.093590676784515,0.054736189544201,-0.009170617908239,-0.087706550955772,0.056166678667068,0.071960151195526,0.012163685634732,0.024438753724098,-0.204172104597092,0.174406558275223,-0.012925758026540,0.197038456797600,0.069835290312767,0.057907983660698,0.116337440907955) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.017323151230812,0.131950423121452,0.070130378007889,0.072602927684784,-0.297933191061020,-0.084400102496147,-0.441234737634659,-0.005226001143456,0.029619010165334,0.016888819634914,-0.014161313883960,-0.067353092133999,-0.011080327443779,0.046379040926695,-0.257626354694366,0.042651131749153) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.036934781819582,0.025835696607828,0.116448469460011,0.089025534689426,-0.113361828029156,0.092304386198521,-0.122535549104214,0.064435951411724,-0.041769895702600,-0.008542857132852,-0.192970260977745,0.053234118968248,0.106149755418301,0.004132947884500,0.170934095978737,0.085215985774994) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.097347937524319,-0.019624495878816,0.124279417097569,-0.051631331443787,0.036399897187948,0.027978138998151,0.030274251475930,-0.041773851960897,0.193223536014557,-0.064981974661350,-0.060322728008032,0.047898974269629,-0.049074571579695,0.029671652242541,0.012338846921921,-0.008139950223267) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.101884022355080,0.113504536449909,0.136852726340294,-0.016306426376104,0.035187106579542,-0.044949751347303,0.113656044006348,-0.035226214677095,0.020606845617294,-0.177578002214432,0.072233438491821,-0.049692131578922,-0.143954902887344,0.103174321353436,-0.055314477533102,-0.090186372399330) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.072935186326504,0.047648724168539,0.212529063224792,-0.027577262371778,-0.080496951937675,-0.012225759215653,0.023989593610168,0.002078673103824,-0.087296433746815,0.078213423490524,0.076698295772076,0.006351620424539,-0.009468725882471,-0.042756982147694,0.115760862827301,-0.127688080072403) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.084681525826454,-0.201603904366493,0.104879789054394,-0.158588230609894,-0.080003440380096,-0.051978908479214,0.126141324639320,-0.124292738735676,0.006577443797141,0.282006144523621,-0.045411147177219,0.172763824462891,-0.059292539954185,0.178077086806297,0.001466058078222,-0.027722623199224) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.114261105656624,-0.300172865390778,0.246514439582825,0.521737217903137,0.095406837761402,-0.133290037512779,0.234772652387619,0.127103969454765,-0.236648544669151,-0.237357154488564,-0.097289122641087,0.010498137213290,-0.066117078065872,0.056839998811483,0.149222984910011,-0.018754072487354) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.081212885677814,-0.034862883388996,0.072933100163937,0.028034299612045,-0.071632325649261,-0.113634273409843,0.078687652945518,0.005240401253104,-0.108628891408443,0.183941796422005,0.165976881980896,0.031861037015915,-0.003986472729594,0.028421146795154,0.102637745440006,-0.030181165784597) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.174525901675224,0.055719699710608,0.072084911167622,-0.055925648659468,0.002254105405882,-0.057109411805868,-0.186031311750412,0.087263636291027,-0.023826800286770,-0.062820278108120,0.007372604683042,-0.063706845045090,0.015552727505565,-0.005951366387308,-0.204127445816994,-0.068001419305801) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.010600135661662,0.040553770959377,-0.374612182378769,-0.053566820919514,0.416254669427872,0.068527571856976,-0.328635752201080,0.209323734045029,-0.266316622495651,0.024370590224862,0.053446952253580,0.026424005627632,0.116455867886543,0.178394436836243,0.027620684355497,-0.148104473948479) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.073038265109062,0.117066122591496,-0.108582161366940,-0.051625888794661,-0.075992621481419,-0.004253714811057,-0.357716143131256,0.153851389884949,-0.263776093721390,0.033967096358538,-0.054138552397490,0.004334335681051,0.149917170405388,-0.009300599806011,0.008598844520748,0.059396103024483) * MODEL10_texOff(vec2(1,1));
res += mat4(0.042989958077669,0.101910255849361,0.062313977628946,0.043169226497412,0.073433183133602,-0.032695647329092,-0.262141644954681,-0.014263923279941,-0.079883188009262,0.052454646676779,-0.056683808565140,0.071422368288040,-0.067551821470261,0.001061911345460,-0.158219441771507,-0.003163349349052) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.345285147428513,-0.004741550423205,-0.001901435898617,0.251842021942139,0.234973102807999,-0.220869764685631,-0.107973113656044,-0.091256201267242,0.119572475552559,-0.014301652088761,-0.048663817346096,0.073896631598473,0.060114655643702,0.071008913218975,-0.095530107617378,-0.234728291630745) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.100499831140041,-0.088355392217636,-0.072500832378864,0.061401210725307,0.060624152421951,0.023205850273371,-0.201248079538345,-0.180548146367073,-0.022085592150688,-0.044054392725229,-0.049946751445532,0.036393210291862,-0.139320373535156,-0.056372929364443,-0.053988654166460,0.009466609917581) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.068367287516594,-0.336594939231873,-0.210839018225670,-0.134237855672836,-0.115002110600471,-0.011993008665740,-0.115918576717377,-0.043689861893654,-0.060965247452259,-0.080001838505268,-0.131393775343895,-0.080499313771725,0.117124915122986,0.120996385812759,0.034553922712803,-0.030389916151762) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.222752287983894,0.123773679137230,-0.376583099365234,-0.205692157149315,-0.068868018686771,-0.145400971174240,0.046221923083067,-0.145779743790627,0.709300637245178,0.367275923490524,-0.000418002193328,0.188410028815269,-0.097800098359585,-0.208524331450462,-0.175149112939835,0.050057951360941) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.095593310892582,0.000392989779357,-0.206537693738937,0.025969926267862,0.081801965832710,-0.071711368858814,0.034942150115967,0.026269918307662,0.057547166943550,0.114397488534451,-0.089758798480034,-0.060594990849495,0.101791702210903,-0.015415579080582,0.045465741306543,-0.135710835456848) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.045106690376997,0.069518655538559,-0.273849040269852,-0.055563632398844,0.066165916621685,-0.021348599344492,0.218678131699562,-0.097669735550880,-0.039311312139034,0.088874220848083,-0.034686755388975,0.019860746338964,0.032614067196846,-0.123948067426682,-0.066208735108376,-0.002910889917985) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.142863467335701,-0.069774165749550,-0.875254929065704,-0.152805626392365,0.033269297331572,-0.059860467910767,0.257913112640381,-0.053596172481775,-0.019281428307295,-0.019460776820779,-0.172619044780731,0.054099179804325,0.073626890778542,-0.032643798738718,0.136449977755547,0.053728174418211) * MODEL11_texOff(vec2(1,0));
res += mat4(0.099437348544598,0.105024032294750,-0.478144824504852,-0.000869394280016,0.123368583619595,-0.151184231042862,0.315561741590500,-0.133186697959900,-0.079853229224682,-0.035748593509197,0.005918256007135,-0.004327988717705,-0.002576733939350,-0.127516493201256,-0.158196225762367,0.010268570855260) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.132318019866943,0.014671961776912,0.158855378627777,0.017606450244784,0.000494761974551,-0.160497188568115,0.113158121705055,0.022515788674355,0.008321124128997,0.057028677314520,0.064111769199371,0.056747239083052,0.037051435559988,-0.102045863866806,0.004864248447120,-0.072679735720158) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.080364041030407,-0.074348494410515,0.053156279027462,0.013367409817874,-0.017215916886926,-0.077005833387375,-0.011617167852819,-0.009908376261592,-0.128638029098511,-0.040396805852652,-0.071031078696251,0.024545239284635,0.043025977909565,-0.043007209897041,0.011428319849074,-0.041064329445362) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.063972219824791,-0.075700290501118,0.070895008742809,-0.031627602875233,0.044578306376934,-0.174342915415764,0.027280045673251,-0.041123218834400,-0.045150648802519,0.000079238496255,-0.019409015774727,-0.134179204702377,0.092118278145790,-0.009521687403321,0.069715842604637,0.004090975038707) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.086883857846260,0.105800926685333,-0.021831341087818,0.101193547248840,-0.145114198327065,0.016720503568649,-0.050555098801851,0.024634856730700,0.147074967622757,-0.171437680721283,-0.019572438672185,0.091254979372025,0.044333335012197,-0.106878899037838,0.017810093238950,-0.016929917037487) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.086302913725376,-0.193060562014580,-0.826390147209167,0.066579230129719,0.287411332130432,0.302457511425018,0.028156127780676,0.260902047157288,0.027961688116193,-0.267082750797272,0.109359227120876,-0.066114515066147,-0.113882824778557,-0.063956022262573,-0.125195920467377,0.062837585806847) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.018322777003050,-0.094138607382774,-0.123198620975018,-0.033747926354408,0.112362146377563,-0.077106118202209,-0.130680009722710,0.189411148428917,-0.238575726747513,-0.087587945163250,-0.057392392307520,-0.095030091702938,0.063009068369865,0.038091070950031,-0.015596433542669,0.005900897551328) * MODEL12_texOff(vec2(0,1));
res += mat4(0.025340363383293,-0.069027073681355,0.040523242205381,-0.008238770999014,0.056187253445387,-0.019152574241161,-0.081307530403137,0.015253211371601,0.135821238160133,-0.129967316985130,0.025295706465840,0.083342663943768,0.137323662638664,-0.137066960334778,0.102244250476360,-0.066844940185547) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.092253960669041,0.149366125464439,0.572757184505463,0.176154747605324,-0.181692734360695,0.029548311606050,-0.116137459874153,-0.082914389669895,0.175783127546310,0.198669537901878,0.184297502040863,0.333052098751068,0.242938056588173,0.034901231527328,0.342810153961182,-0.056233614683151) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.114466413855553,-0.106821767985821,0.245590686798096,0.084915250539780,0.142454385757446,-0.089837498962879,-0.020692763850093,0.038949709385633,0.015143778175116,-0.070964395999908,0.252390772104263,0.084500312805176,-0.009343318641186,-0.078694649040699,-0.035710826516151,-0.041087530553341) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.118421725928783,0.780300676822662,0.012204826809466,0.658158600330353) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(0.120259441435337,-0.122959643602371,0.024076247587800,0.005987760610878);
res += mat4(-0.040264673531055,0.032079007476568,-0.020132130011916,0.081948906183243,-0.179645702242851,0.074444189667702,0.245607942342758,-0.018465334549546,-0.156101733446121,-0.075772359967232,-0.011536804959178,0.076220043003559,0.004494768567383,0.033972512930632,0.017475957050920,-0.034753285348415) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.025110794231296,-0.251119077205658,0.032175492495298,0.136906266212463,0.107900671660900,-0.160902425646782,-0.099524013698101,-0.017592603340745,-0.075244300067425,-0.060723349452019,0.105205737054348,-0.161280110478401,-0.167445778846741,0.073326155543327,0.102568276226521,-0.054354429244995) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.110686592757702,0.282080233097076,0.060481481254101,0.035534750670195,-0.172134831547737,-0.038461439311504,0.082272917032242,-0.206660374999046,0.122335366904736,0.014712917618454,-0.064845345914364,0.181336328387260,-0.092995174229145,0.154882505536079,0.036300837993622,-0.192224517464638) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.024803210049868,0.019239753484726,0.139040872454643,0.123067654669285,0.137808486819267,-0.055099926888943,0.155565604567528,-0.164433702826500,-0.055587984621525,0.176130190491676,0.333146929740906,0.183067947626114,-0.455550402402878,0.063612520694733,-0.008935501798987,-0.315105289220810) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.245037734508514,0.131752759218216,0.031807076185942,0.179171189665794,0.035331666469574,-0.095057949423790,-0.180897384881973,-0.072251871228218,0.108350493013859,-0.242026656866074,-0.276922374963760,-0.102752797305584,-0.330422729253769,0.005381470080465,0.109282366931438,0.080250285565853) * MODEL7_texOff(vec2(0,0));
res += mat4(0.016327103599906,-0.078076310455799,0.176995694637299,-0.062202606350183,-0.003144459100440,-0.035619221627712,0.178683206439018,-0.098907873034477,-0.005749027244747,0.069388948380947,-0.589143574237823,-0.426076710224152,-0.213537901639938,-0.076850101351738,0.045179285109043,-0.260108172893524) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.012247043661773,0.015368678607047,0.133877590298653,0.028082180768251,-0.127421334385872,0.049094188958406,0.031668405979872,-0.375157177448273,0.211244985461235,-0.053302042186260,0.109594568610191,0.043486647307873,-0.102584101259708,0.048067275434732,0.053107872605324,0.013598940335214) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.056453861296177,0.056143719702959,0.122041858732700,-0.202283501625061,0.071681864559650,0.186747282743454,0.112325854599476,-0.099962130188942,-0.115727186203003,0.133878991007805,-0.278174370527267,0.111522287130356,-0.089936137199402,0.135006636381149,0.067913874983788,0.183113723993301) * MODEL7_texOff(vec2(1,0));
res += mat4(0.185604408383369,-0.105663493275642,0.024222129955888,0.013381558470428,0.029671391472220,0.124658845365047,-0.029533194378018,-0.199936419725418,-0.015537679195404,0.042136646807194,0.097795933485031,-0.098550572991371,-0.023049678653479,0.059692747890949,0.029314367100596,-0.193901538848877) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.028197906911373,0.011251605115831,0.008835359476507,0.138132750988007,0.169871404767036,0.199256315827370,-0.065409429371357,0.061306767165661,0.041637592017651,0.110654368996620,0.010156821459532,-0.081837207078934,0.096743404865265,-0.055169299244881,-0.041810221970081,0.008938073180616) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.033865097910166,0.081022731959820,-0.003220028243959,0.191607192158699,0.123453103005886,0.148055180907249,0.124894268810749,0.009477441199124,0.091294236481190,0.111761353909969,0.109663695096970,-0.022867426276207,0.075974568724632,-0.096964992582798,-0.081763930618763,0.120307080447674) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.033965874463320,0.114084154367447,-0.157535627484322,0.035852596163750,0.196668490767479,0.201787799596786,-0.004573562648147,-0.119890242815018,0.124030150473118,0.198260739445686,0.039948157966137,-0.019757723435760,0.031352754682302,0.027199536561966,-0.125483810901642,0.059918478131294) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.185010433197021,0.001725865295157,-0.093778096139431,-0.117937326431274,-0.027905149385333,0.066523067653179,0.106352835893631,0.145869448781013,-0.281497716903687,0.227774247527122,0.138781428337097,-0.032532304525375,0.060643397271633,-0.142126485705376,-0.269481271505356,-0.005000107455999) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.040897395461798,-0.008632487617433,-0.014880144037306,0.026645814999938,-0.262929439544678,0.063282631337643,0.139084145426750,0.103272184729576,-0.346080392599106,0.325144469738007,-0.152599468827248,-0.102220773696899,0.245376735925674,0.245015487074852,-0.209892049431801,-0.020731024444103) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.039785720407963,-0.114496551454067,-0.064319543540478,-0.135032981634140,-0.051149781793356,0.013983638025820,-0.036466088145971,0.004251860082150,-0.139992207288742,0.113690689206123,-0.007940073497593,-0.094806946814060,0.172678098082542,0.004981782287359,-0.013101407326758,0.154789730906487) * MODEL8_texOff(vec2(0,1));
res += mat4(0.130565419793129,-0.005004625767469,-0.099847622215748,-0.066481813788414,-0.117173984646797,-0.175900518894196,0.049936313182116,-0.055835321545601,-0.209173008799553,0.023864185437560,0.106542833149433,0.057884968817234,0.008322038687766,-0.067500203847885,-0.232411652803421,0.172728553414345) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.205454126000404,0.022534612566233,-0.000507477961946,0.163241505622864,-0.054801862686872,-0.249302223324776,-0.014907805249095,0.058648321777582,-0.474886387586594,-0.107924588024616,0.213421508669853,0.358829379081726,-0.011171213351190,-0.113781556487083,0.179096370935440,-0.051024198532104) * MODEL8_texOff(vec2(1,0));
res += mat4(0.282296270132065,-0.023919688537717,0.132814064621925,-0.073630966246128,0.007955327630043,-0.042386509478092,-0.143271580338478,0.057001985609531,-0.173397913575172,0.083908185362816,-0.050252851098776,0.015053486451507,-0.035067122429609,-0.085579566657543,-0.316713601350784,0.071444213390350) * MODEL8_texOff(vec2(1,1));
res += mat4(0.070427872240543,-0.024815412238240,-0.082814007997513,-0.113267019391060,-0.033244319260120,-0.026338370516896,-0.058408327400684,0.114272981882095,-0.021175304427743,-0.094893470406532,-0.069043077528477,-0.025101596489549,-0.034584905952215,0.111974574625492,-0.230223447084427,-0.035990610718727) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.080594956874847,-0.186094433069229,-0.144443884491920,0.007166369818151,0.021467437967658,-0.000982364988886,-0.162632867693901,0.121691368520260,-0.181469202041626,0.084912165999413,0.192663088440895,-0.183839023113251,-0.135129868984222,0.244455531239510,0.137268975377083,-0.206383079290390) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.182348296046257,0.013749644160271,-0.113693661987782,0.060481272637844,0.000384612969356,0.008207561448216,-0.119375489652157,-0.080651581287384,-0.123697221279144,-0.074101999402046,0.237133517861366,-0.102050893008709,0.077513352036476,-0.065147116780281,0.029286710545421,0.221642553806305) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.081642434000969,0.069675602018833,-0.067554444074631,-0.054366406053305,-0.056292530149221,-0.053452499210835,0.204602599143982,0.141201421618462,-0.163435965776443,0.117280185222626,0.174737140536308,0.208989515900612,-0.002453410532326,-0.138735294342041,0.014327061362565,0.105384089052677) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.132994279265404,0.158010631799698,0.179928988218307,0.212487444281578,-0.249665483832359,-0.035307407379150,-0.135781005024910,0.005202012136579,-0.285614877939224,0.059326037764549,0.091968178749084,-0.048495270311832,0.088997066020966,-0.034995902329683,0.026001196354628,-0.045510735362768) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.049659244716167,-0.103443868458271,0.033830285072327,-0.062832482159138,0.153788164258003,0.001210252870806,0.093426778912544,0.064730301499367,-0.072557374835014,0.058956816792488,0.167232528328896,0.209791719913483,-0.060332152992487,-0.157384663820267,-0.356102317571640,-0.180945992469788) * MODEL9_texOff(vec2(0,1));
res += mat4(0.127180635929108,-0.013881322927773,0.024275582283735,-0.049738552421331,0.246563956141472,0.024179074913263,-0.015082612633705,-0.128847241401672,-0.135767430067062,-0.035178750753403,0.289910644292831,-0.151781991124153,0.069579869508743,-0.087430343031883,0.062190450727940,-0.175610497593880) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.095102570950985,-0.067565441131592,0.078138090670109,-0.037142679095268,0.146785095334053,0.242670416831970,-0.130307570099831,0.182205975055695,-0.145491838455200,-0.136155962944031,0.141797080636024,-0.201624482870102,0.097653925418854,0.083557099103928,-0.196298792958260,0.326645672321320) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.072309836745262,-0.124307431280613,0.112460844218731,0.023725226521492,0.013962829485536,0.022804494947195,-0.080892100930214,0.271994382143021,-0.144487574696541,-0.019976262003183,-0.045042056590319,0.134125411510468,-0.067574135959148,0.147546902298927,-0.013641772791743,-0.110990636050701) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.053145192563534,-0.007497381418943,-0.032952569425106,0.051980171352625,0.029799206182361,0.033688895404339,0.081689238548279,0.010887322016060,0.090199887752533,-0.012681478634477,-0.016836736351252,-0.106395602226257,-0.144561916589737,0.152287200093269,0.063466168940067,-0.105665981769562) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.031444262713194,0.152066990733147,0.171365529298782,0.056068301200867,-0.007113850209862,-0.014395793899894,-0.093870319426060,-0.033520020544529,0.032380428165197,0.260772377252579,-0.020325409248471,-0.024871289730072,-0.005611310247332,0.327891737222672,0.059524890035391,-0.061101727187634) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.005714036524296,0.186930194497108,-0.027956105768681,-0.171161308884621,0.097500070929527,0.032291844487190,-0.052094388753176,0.055305372923613,0.020627811551094,-0.075149506330490,0.081641808152199,-0.150338903069496,0.091690540313721,0.086925417184830,0.099075682461262,0.093293040990829) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.026130460202694,-0.051641505211592,0.208126351237297,0.173061147332191,-0.024340316653252,0.196424707770348,0.103954233229160,0.104423865675926,0.061335328966379,-0.126219123601913,-0.190517038106918,-0.152209550142288,-0.204230159521103,-0.034642420709133,0.058504238724709,0.067315742373466) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.072865784168243,-0.367378145456314,-0.252880871295929,-0.363054662942886,0.155314505100250,0.226669520139694,-0.038651086390018,-0.031979598104954,-0.083303913474083,-0.072846643626690,0.468497633934021,0.166229590773582,0.076849371194839,-0.149615883827209,-0.053692802786827,0.027499919757247) * MODEL10_texOff(vec2(0,0));
res += mat4(0.004456961527467,-0.097908586263657,0.028640368953347,-0.066293112933636,0.008325045928359,0.175773471593857,-0.109889239072800,-0.054819319397211,-0.095833338797092,0.058759078383446,0.451098233461380,0.385770440101624,0.072834700345993,0.007286503445357,-0.010901743546128,-0.048697546124458) * MODEL10_texOff(vec2(0,1));
res += mat4(0.122923612594604,-0.000710216932930,0.018091909587383,0.066089116036892,-0.189147889614105,-0.148161306977272,0.170801326632500,0.116260066628456,0.051566604524851,0.077607154846191,-0.194481641054153,-0.054764874279499,-0.042958576232195,0.087442025542259,-0.007549238391221,0.085768550634384) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.192380979657173,0.147338673472404,-0.205591142177582,0.305370032787323,-0.111563347280025,-0.304131835699081,-0.214380577206612,0.068818926811218,0.108366243541241,-0.078197531402111,0.138499870896339,0.077386513352394,0.018578192219138,0.245278000831604,-0.178420722484589,-0.126156687736511) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.080684915184975,-0.009956660680473,-0.013093413785100,0.127084150910378,-0.085892908275127,-0.328726321458817,-0.065200090408325,-0.161376550793648,0.020041475072503,-0.011662042699754,0.006737930700183,0.020796492695808,0.076767429709435,-0.055784706026316,-0.015083814971149,0.128980249166489) * MODEL10_texOff(vec2(1,1));
res += mat4(0.072306238114834,-0.119145162403584,-0.143097758293152,0.153376296162605,0.117222107946873,-0.059352524578571,0.008997122757137,-0.158019691705704,-0.157987996935844,-0.045758217573166,0.015946887433529,0.008216460235417,-0.228493973612785,-0.112188845872879,-0.145083889365196,-0.097489111125469) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.413983970880508,-0.172330647706985,0.230357214808464,0.321573823690414,0.055127251893282,-0.040697358548641,-0.147669062018394,-0.372492611408234,-0.049914315342903,-0.252118617296219,-0.089292570948601,-0.077256642282009,-0.547793745994568,0.107918344438076,0.255800575017929,0.218480408191681) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.193158611655235,-0.122856356203556,-0.025692846626043,-0.051076646894217,0.039592482149601,-0.235935822129250,-0.100531376898289,0.110075652599335,0.015305089764297,-0.232800468802452,0.036972433328629,0.013099009171128,-0.065568804740906,-0.018303476274014,-0.058109562844038,0.050405040383339) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.028178190812469,0.054676689207554,-0.034963153302670,0.017696056514978,0.021779995411634,-0.021193506196141,-0.008733239024878,0.049020480364561,0.135634571313858,0.028172759339213,0.166937127709389,0.064985953271389,-0.002484810538590,-0.163133978843689,0.014774223789573,0.056020963937044) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.082295402884483,0.018837593495846,-0.040798641741276,-0.184147492051125,0.213282734155655,0.006205043289810,0.115774758160114,-0.087433949112892,0.361847996711731,-0.192198902368546,-0.510329306125641,-0.435377269983292,-0.281665295362473,0.069340743124485,-0.038623310625553,-0.014333270490170) * MODEL11_texOff(vec2(0,0));
res += mat4(0.084437489509583,0.024484781548381,0.228760942816734,0.123729348182678,0.007105359341949,-0.158950716257095,-0.014953486621380,-0.251052051782608,0.190040037035942,-0.113694265484810,0.030214656144381,-0.059100572019815,-0.171351656317711,0.121852055191994,0.030127724632621,-0.007714063394815) * MODEL11_texOff(vec2(0,1));
res += mat4(0.115024089813232,-0.029957797378302,-0.009569817222655,-0.022226937115192,0.269019722938538,0.179710134863853,-0.044823557138443,-0.014340282417834,0.119106814265251,-0.012583636678755,-0.033353403210640,0.072340585291386,-0.056991789489985,-0.062995448708534,0.011314208619297,-0.023817297071218) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.127160534262657,0.083458743989468,-0.125585556030273,0.168286785483360,0.135241582989693,0.097051799297333,-0.057424642145634,-0.131058901548386,0.123201079666615,0.146952107548714,-0.153324738144875,0.117440924048424,-0.060293491929770,-0.188502326607704,0.188968762755394,-0.169957444071770) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.057482991367579,0.030915794894099,0.082563348114491,0.233730882406235,-0.002284462098032,0.182151138782501,0.222541242837906,0.018275341019034,-0.013997109606862,0.113484390079975,-0.014427290298045,0.066225759685040,-0.062416084110737,-0.090199209749699,0.002171697560698,-0.133254319429398) * MODEL11_texOff(vec2(1,1));
res += mat4(0.090711094439030,0.140947639942169,0.104755938053131,0.124620243906975,0.028571419417858,0.122791901230812,0.036824796348810,0.007507536094636,-0.041399072855711,0.257376521825790,0.015868552029133,-0.119879543781281,0.023464161902666,0.050347328186035,0.017356503754854,-0.029136028140783) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.171003952622414,-0.105722852051258,0.033066231757402,0.342909753322601,0.174283191561699,-0.301601052284241,-0.160577759146690,-0.105352997779846,-0.105881169438362,0.156855285167694,0.303160935640335,-0.030603304505348,0.035600919276476,0.104535229504108,-0.059662114828825,-0.025797134265304) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.095447197556496,-0.073215164244175,-0.091917812824249,0.040864948183298,-0.019606441259384,-0.252705872058868,-0.058208517730236,-0.039886657148600,0.113649033010006,0.253253728151321,0.034453917294741,0.119179919362068,0.045400533825159,-0.042689252644777,-0.086129978299141,-0.039084255695343) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.001940742367879,-0.121920473873615,-0.043372221291065,-0.079239390790462,-0.186588153243065,0.084433324635029,0.136299669742584,0.085902772843838,-0.090125292539597,-0.019708877429366,-0.018749395385385,0.135219037532806,0.027504678815603,-0.084027543663979,0.007841142825782,0.023201018571854) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.045506641268730,-0.018988702446222,-0.273039072751999,0.104402005672455,-0.245395317673683,0.122411191463470,-0.250772356987000,-0.623816072940826,0.020216124132276,-0.274414330720901,-0.161653503775597,-0.122027009725571,0.088193468749523,-0.538312554359436,-0.108114868402481,-0.056854661554098) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.059167664498091,0.061049871146679,0.004541995469481,-0.057263847440481,-0.178498759865761,0.145232856273651,-0.032537721097469,0.083252564072609,0.022732574492693,-0.085466913878918,-0.080812074244022,0.061004675924778,0.031149288639426,-0.045684512704611,-0.083644367754459,-0.067260473966599) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.008120584301651,0.008072960190475,-0.092705130577087,0.063717499375343,0.008282608352602,-0.118605419993401,-0.076352648437023,-0.149843305349350,-0.178127631545067,-0.048774164170027,0.033217959105968,0.202289327979088,0.176903218030930,-0.098784796893597,-0.089344233274460,-0.294532895088196) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.138907983899117,-0.071052186191082,-0.070725992321968,-0.158778250217438,-0.266292542219162,-0.011001305654645,-0.006917221471667,0.099362701177597,0.004388570319861,-0.026494160294533,-0.151110351085663,0.078200772404671,0.248085558414459,-0.027366148307920,-0.409186869859695,-0.333548486232758) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.000666810898110,-0.058335326611996,0.029392022639513,-0.018364643678069,-0.060855586081743,-0.030293811112642,-0.028413299471140,0.085783801972866,0.008873887360096,-0.054471004754305,0.098567843437195,0.028970977291465,-0.037574604153633,-0.033530648797750,0.029166180640459,-0.005932180210948) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.005045167170465,-0.087836816906929,-0.198478832840919,-0.011536597274244) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.128573134541512,-0.178908273577690,-0.183241814374924,-0.141094550490379);
res += mat4(0.034137636423111,0.037587650120258,0.182107523083687,0.104643724858761,0.092756778001785,-0.196300432085991,-0.024668186903000,-0.022613925859332,0.039052493870258,0.084549829363823,0.032273203134537,0.032161071896553,-0.059015437960625,0.106324456632137,0.001900685252622,0.104572758078575) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.083449095487595,-0.241411715745926,-0.165692925453186,-0.116508692502975,-0.074463218450546,-0.375880926847458,0.008775733411312,0.090953201055527,-0.059354837983847,-0.262247174978256,-0.008618878200650,-0.051549144089222,-0.041309662163258,0.150346219539642,-0.153866618871689,-0.021595571190119) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.036758117377758,0.036400333046913,0.033689063042402,-0.023475518450141,0.059034436941147,-0.072629950940609,0.070364080369473,0.060514014214277,0.064885392785072,-0.126034229993820,-0.007966969162226,0.139122605323792,-0.031316895037889,0.113156370818615,0.108243703842163,0.024427948519588) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.326631575822830,-0.111333817243576,0.091445438563824,-0.085143864154816,-0.046239666640759,-0.173690214753151,0.165244728326797,0.160534292459488,0.175371989607811,0.023360900580883,-0.033036418259144,0.068027667701244,0.084353476762772,-0.031882550567389,-0.057856868952513,-0.130924239754677) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.111346140503883,-0.140321791172028,-0.193748280405998,-0.197704479098320,-0.007027753163129,-0.169119313359261,-0.207307070493698,-0.140781074762344,0.107099793851376,-0.000318837614032,-0.003817287273705,-0.068562924861908,-0.240141451358795,0.072537384927273,-0.220878675580025,-0.035476598888636) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.028612881898880,0.096064783632755,-0.044166080653667,0.037268303334713,-0.009373448789120,-0.140557348728180,0.094171896576881,-0.097440868616104,0.034423574805260,0.009977356530726,-0.054792962968349,0.032146714627743,0.081027582287788,-0.018649116158485,0.091817535459995,-0.179103210568428) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.038598421961069,0.144710153341293,0.035218067467213,0.075990810990334,-0.168933734297752,0.047130823135376,-0.031022854149342,0.108565568923950,0.020855050534010,0.028888354077935,0.042833611369133,0.025735266506672,-0.061000190675259,0.052062086760998,-0.015352517366409,-0.107562728226185) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.196008637547493,0.080810166895390,-0.172822698950768,-0.096892885863781,-0.008617823943496,0.026122486218810,0.031506333500147,-0.119553804397583,-0.055485863238573,0.106235831975937,0.037863243371248,0.054762013256550,0.131861940026283,0.007391362916678,-0.224248811602592,-0.325570285320282) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.019747270271182,-0.006129676010460,0.003651984268799,0.027837971225381,-0.026430893689394,0.040701333433390,-0.076526291668415,-0.007368633057922,0.025607766583562,0.009760230779648,-0.066141851246357,-0.043599896132946,-0.181342124938965,0.050330087542534,0.149250611662865,0.132647618651390) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.060653720051050,-0.042176555842161,-0.079022839665413,0.046953428536654,-0.056896533817053,-0.043246172368526,0.129297897219658,0.067285276949406,-0.079413563013077,-0.200702250003815,-0.045820232480764,-0.152379229664803,0.044901549816132,0.009687688201666,-0.044610805809498,-0.010912834666669) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.187300190329552,0.069380901753902,0.060015182942152,-0.059840358793736,-0.078575499355793,-0.023478243499994,-0.145986437797546,-0.028878256678581,-0.019028794020414,-0.114046774804592,-0.071459941565990,-0.115090794861317,0.053735688328743,0.142706215381622,0.045101329684258,0.084308750927448) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.103319235146046,0.002034821081907,0.068884477019310,-0.030898716300726,0.057982970029116,0.122976318001747,-0.042055185884237,0.102353207767010,0.097089067101479,-0.012755984440446,-0.043210905045271,-0.004668888170272,-0.003978103399277,0.050183340907097,0.057188652455807,-0.032599251717329) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.089788228273392,-0.024105431511998,-0.001004102756269,-0.028946671634912,-0.047882180660963,-0.084716357290745,0.043191224336624,0.148528009653091,-0.009801091626287,0.271957516670227,0.039580773562193,-0.020693238824606,0.012816119007766,0.044008526951075,-0.050353363156319,0.084558755159378) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.228794381022453,-0.060164235532284,0.038752574473619,-0.045773778110743,0.113367848098278,0.004821701906621,0.333488643169403,0.155865743756294,-0.007502067368478,0.015371654182673,-0.024582287296653,-0.050190512090921,-0.091662876307964,-0.129781574010849,0.031674623489380,0.227152228355408) * MODEL2_texOff(vec2(0,0));
res += mat4(0.163542285561562,-0.022949945181608,0.175297558307648,0.095852270722389,-0.072213433682919,0.055982191115618,-0.096741206943989,-0.055342677980661,-0.047999687492847,-0.055409852415323,-0.118199087679386,-0.159537732601166,0.256312876939774,-0.117840059101582,0.242395907640457,0.038553494960070) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.132529452443123,-0.118969976902008,-0.077297434210777,-0.108274690806866,-0.017642578110099,-0.032786816358566,0.063351333141327,0.063465110957623,-0.008751741610467,-0.309931576251984,0.072339057922363,0.084478601813316,0.013956735841930,0.084111995995045,-0.161091029644012,-0.095243759453297) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.026702137663960,-0.139176994562149,0.043917451053858,-0.141162022948265,-0.200135663151741,0.111353158950806,0.159127265214920,0.122909128665924,-0.006013291887939,0.048743363469839,-0.011548751965165,0.113217271864414,0.080932430922985,0.247696205973625,-0.155984699726105,-0.147801071405411) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.024080695584416,0.086580820381641,-0.067013800144196,0.039613161236048,-0.078918837010860,0.058622799813747,-0.027236739173532,-0.057000383734703,0.002853013109416,0.239051774144173,-0.045369338244200,-0.151891753077507,-0.038608092814684,0.237857237458229,0.195602029561996,0.162553131580353) * MODEL2_texOff(vec2(1,1));
res += mat4(0.019661905243993,-0.027499387040734,0.048643317073584,0.022764734923840,0.020166734233499,0.070043534040451,-0.191699281334877,-0.135408163070679,0.026884561404586,-0.058259259909391,-0.015916429460049,-0.001885031117126,0.080357246100903,0.125636309385300,0.094458319246769,0.105580791831017) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.104805968701839,-0.008335584774613,-0.175141513347626,-0.065960459411144,-0.068865768611431,-0.040974192321301,0.210151046514511,0.026227377355099,-0.061206240206957,0.130923613905907,-0.041696164757013,-0.133125290274620,-0.072486996650696,0.053825784474611,-0.163546338677406,-0.115709081292152) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.008988870307803,-0.008117721416056,0.035672500729561,0.056886266916990,-0.053522765636444,0.155344396829605,-0.126555576920509,0.029992798343301,0.068111523985863,0.111806653439999,0.019629573449492,0.083551242947578,0.007443600799888,-0.127400249242783,0.086915113031864,0.062054324895144) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.138904720544815,-0.049265127629042,0.159294351935387,0.071099713444710,0.023755570873618,-0.104464016854763,-0.013759757392108,-0.002554337726906,0.185849532485008,-0.009606297127903,-0.104348339140415,-0.156691089272499,-0.046383172273636,-0.169868826866150,-0.135897487401962,-0.088975824415684) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.004873757716268,0.042981885373592,-0.230424046516418,-0.106563858687878,-0.278772145509720,-0.215685740113258,-0.133252531290054,-0.191726982593536,0.007769822143018,-0.063235618174076,0.216217830777168,0.242989420890808,-0.051220715045929,-0.003479140345007,0.045278087258339,0.066772080957890) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.193915367126465,-0.095147617161274,-0.294581621885300,-0.114177383482456,0.070651061832905,-0.086107581853867,0.085981726646423,0.061419337987900,-0.115370415151119,0.085025869309902,-0.072270326316357,0.035426799207926,-0.077935822308064,0.235136419534683,-0.012963797897100,-0.219323039054871) * MODEL3_texOff(vec2(0,1));
res += mat4(0.126746565103531,0.008305887691677,-0.032110020518303,-0.052904203534126,-0.042144704610109,0.082331039011478,-0.036651927977800,0.001324334763922,-0.007723636925220,0.079200267791748,0.081637710332870,0.108700118958950,-0.021812239661813,0.239370167255402,0.034726951271296,0.066070847213268) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.060264017432928,-0.081569932401180,0.102184973657131,-0.002863703761250,0.171376869082451,0.086539857089520,0.028663616627455,-0.056540407240391,-0.007811028044671,0.091421827673912,-0.031398266553879,-0.056424584239721,0.153784304857254,0.038124036043882,-0.055831868201494,-0.219479396939278) * MODEL3_texOff(vec2(1,0));
res += mat4(0.068915687501431,0.078707836568356,-0.028712952509522,-0.011299860663712,-0.072990797460079,0.070903152227402,0.032609067857265,-0.013266071677208,0.043406557291746,0.048962458968163,-0.037336610257626,-0.032877374440432,-0.090448223054409,-0.256932973861694,0.123211741447449,0.132813826203346) * MODEL3_texOff(vec2(1,1));
res += mat4(0.069335334002972,0.113174617290497,0.114360734820366,0.127554997801781,0.036141723394394,-0.063473969697952,-0.048412542790174,-0.002340849488974,0.040057316422462,-0.075020067393780,0.041686136275530,0.034526444971561,-0.100504152476788,0.003046219469979,-0.082825526595116,-0.043448366224766) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.134700238704681,0.038740877062082,-0.077630020678043,0.038976177573204,0.009460556320846,-0.160571724176407,0.160117387771606,0.017388731241226,0.003036610782146,-0.116820141673088,-0.256437420845032,-0.049055553972721,0.002909161848947,0.084803640842438,0.075132705271244,-0.117249347269535) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.058276943862438,-0.024468924850225,-0.062745861709118,-0.055939074605703,0.054318487644196,0.016023499891162,0.064056515693665,0.129695847630501,0.014841836877167,0.075106270611286,-0.007522437721491,-0.160091757774353,-0.001714685466141,-0.008231503888965,0.064619280397892,0.141264125704765) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.047254540026188,-0.094344891607761,-0.160139769315720,0.132134974002838,0.067368634045124,0.046725552529097,-0.015907708555460,-0.032484907656908,-0.204706639051437,0.029949638992548,-0.262569576501846,-0.069610729813576,-0.069642558693886,0.083329737186432,-0.009710509330034,-0.141729339957237) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.307411372661591,-0.142108157277107,-0.065090477466583,-0.269475877285004,-0.052166413515806,0.085367828607559,0.131138190627098,-0.163249537348747,-0.223908320069313,0.135307550430298,-0.212857335805893,-0.138823777437210,-0.062624081969261,0.195342287421227,-0.118752799928188,0.320103168487549) * MODEL4_texOff(vec2(0,0));
res += mat4(0.072614841163158,0.257612228393555,-0.091643832623959,-0.016028683632612,-0.250627756118774,0.059888359159231,-0.095789566636086,0.115050904452801,0.110826954245567,0.055146582424641,0.187096342444420,-0.007154116872698,-0.022493543103337,-0.021526670083404,0.072882086038589,-0.057818539440632) * MODEL4_texOff(vec2(0,1));
res += mat4(0.013569025322795,0.161843717098236,-0.135989248752594,-0.086505182087421,0.037874024361372,0.032698534429073,0.020220737904310,0.013360349461436,0.166680276393890,-0.092046804726124,-0.079777218401432,-0.081212639808655,-0.043571539223194,-0.124309934675694,0.083305999636650,0.049485009163618) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.113614767789841,0.095321759581566,0.047636289149523,0.065902873873711,-0.014107381924987,-0.050784446299076,0.114155396819115,0.012378643266857,-0.399295032024384,-0.265975803136826,0.008453918620944,-0.081619881093502,-0.165241792798042,-0.048302758485079,-0.012412947602570,0.012377306818962) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.157944902777672,-0.161935359239578,0.024527957662940,-0.057541649788618,0.206490367650986,-0.018426664173603,-0.028394572436810,-0.029636433348060,0.082044720649719,0.019831540063024,-0.024187194183469,0.187845423817635,-0.046823002398014,-0.023522658273578,-0.090439386665821,0.010972931981087) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.055699441581964,-0.104727298021317,0.006931299809366,-0.016006616875529,-0.027217013761401,-0.013975861482322,0.010997775010765,0.041377767920494,-0.154160380363464,0.022629521787167,0.069455668330193,0.038767941296101,-0.020285138860345,0.059022024273872,-0.159179478883743,-0.055941287428141) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.111879520118237,-0.205526039004326,-0.035911224782467,0.038785345852375,0.034448187798262,-0.013665008358657,-0.011716496199369,0.021199379116297,0.056905865669250,-0.219450190663338,-0.009632283821702,-0.058278705924749,-0.026398260146379,0.106855340301991,-0.126771658658981,-0.033076215535402) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.090016573667526,-0.129871279001236,0.060044094920158,0.015622771345079,0.046462208032608,0.001342273317277,-0.130572497844696,-0.073647543787956,0.055909898132086,0.091075599193573,0.129257589578629,0.081766001880169,-0.028645953163505,0.094352260231972,-0.056678976863623,-0.071111015975475) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.031142972409725,0.012800619937479,-0.135847955942154,0.112840071320534,0.028862215578556,0.023829681798816,-0.063549242913723,-0.117477454245090,0.000563510053325,0.065498292446136,-0.037702456116676,-0.066413350403309,-0.001172884716652,-0.150718122720718,-0.252244114875793,-0.039509188383818) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.341053605079651,-0.155813291668892,0.023309027776122,-0.073164537549019,-0.104354433715343,0.151793524622917,-0.179669797420502,-0.151638358831406,-0.280719995498657,-0.473274528980255,-0.201108932495117,-0.261351644992828,-0.069368153810501,-0.295219391584396,0.240843474864960,-0.000691073946655) * MODEL5_texOff(vec2(0,0));
res += mat4(0.049524754285812,0.049035992473364,-0.035064496099949,-0.001235779724084,-0.006516082677990,-0.054047305136919,-0.062876150012016,-0.031197164207697,0.052484326064587,0.016847183927894,0.221922397613525,0.177265956997871,0.054925333708525,-0.085323430597782,0.113776460289955,0.074895560741425) * MODEL5_texOff(vec2(0,1));
res += mat4(0.039848111569881,0.093146383762360,0.070655427873135,0.093821980059147,-0.125688359141350,-0.038198381662369,-0.001351842540316,0.030860101804137,-0.057432737201452,0.088793389499187,0.078727573156357,0.101988762617111,0.042422786355019,0.111490465700626,0.049707572907209,0.103669330477715) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.029330242425203,0.224247992038727,0.039134290069342,0.018699286505580,0.026863120496273,0.117616333067417,-0.126299008727074,-0.051422826945782,0.226742520928383,0.384734839200974,0.084224484860897,0.148991972208023,0.087333492934704,0.092797346413136,-0.048641268163919,-0.096240915358067) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.004854621365666,-0.030045103281736,0.039918228983879,0.013460139743984,0.042119346559048,-0.102857895195484,0.041533395648003,-0.077703803777695,-0.045726124197245,0.078111119568348,0.104459621012211,-0.003296711249277,0.015911092981696,0.034272853285074,-0.077931120991707,-0.027054838836193) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.024402312934399,-0.143943428993225,-0.151842311024666,-0.053703375160694,-0.046509899199009,0.028737187385559,-0.056837562471628,-0.011660136282444,-0.007430489175022,-0.039095189422369,0.003541396232322,-0.060930904000998,0.061156738549471,-0.042280294001102,0.040484134107828,-0.062906593084335) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.027563724666834,-0.082042425870895,-0.069355607032776,0.006974206306040,0.017159378156066,-0.089938737452030,0.016829604282975,-0.040070690214634,0.011930052191019,0.046769678592682,0.204239383339882,0.103137575089931,-0.089611850678921,0.060561627149582,-0.203503146767616,-0.099846512079239) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.013481515459716,-0.142368555068970,0.015086952596903,-0.002363518346101,-0.002403987105936,-0.012238565832376,0.054473016411066,0.039653148502111,-0.038510210812092,0.013473947532475,-0.041048903018236,0.072024941444397,0.066941194236279,-0.049574546515942,0.001519967569038,-0.026734484359622) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.122225187718868,-0.153671428561211,-0.032962527126074,-0.016841281205416,-0.103167131543159,0.125614002346992,0.103491500020027,0.147490859031677,-0.093603163957596,-0.124055311083794,0.227733209729195,0.174889147281647,0.088164553046227,-0.064597360789776,0.045614376664162,0.028784075751901) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.090943910181522,-0.317502290010452,-0.138579100370407,-0.013748767785728,0.154577344655991,0.128739356994629,0.092463135719299,-0.210888251662254,-0.130977243185043,-0.196775600314140,0.208318442106247,0.358209252357483,0.511712491512299,0.174008309841156,0.034325588494539,0.061521388590336) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.047884441912174,-0.203990221023560,0.111064456403255,0.076697312295437,0.028199560940266,0.149339243769646,0.013901247642934,0.020966187119484,-0.042793452739716,-0.002229590434581,-0.083392791450024,-0.094921141862869,-0.027536068111658,0.057093597948551,-0.090235963463783,-0.079146496951580) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.016593364998698,0.182247489690781,0.007046955171973,0.008981331251562,-0.029306782409549,0.048983510583639,0.076924607157707,-0.098177224397659,-0.042869664728642,0.067396201193333,0.014559724368155,0.071391142904758,0.028554625809193,0.022431876510382,-0.044675998389721,-0.103141978383064) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.007909039035439,0.280715197324753,0.033008027821779,-0.007445844821632,-0.015532529912889,0.249275043606758,-0.084831565618515,0.142261996865273,0.003511613933370,0.099610731005669,-0.136863589286804,-0.039153531193733,0.039232943207026,-0.129806384444237,-0.032764449715614,0.005838735960424) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.129058331251144,0.071757480502129,0.008037425577641,-0.173789009451866,-0.062512144446373,0.033803302794695,0.069979615509510,-0.034933734685183,-0.153241112828255,-0.099384836852551,0.000829734432045,-0.021265292540193,0.079221889376640,-0.084110394120216,0.005239768885076,-0.003684689290822) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.027042483910918,-0.037812959402800,0.014450656250119,0.013955952599645) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.119444482028484,0.037153154611588,-0.194719046354294,-0.196736380457878);
res += mat4(-0.116456069052219,0.013953240588307,-0.318892538547516,-0.155249312520027,0.081501886248589,0.042657088488340,0.163561552762985,0.122465513646603,0.120990969240665,0.027953900396824,0.295100897550583,-0.005097822286189,0.012777388095856,-0.066499888896942,-0.034575216472149,-0.004979973193258) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.061929460614920,-0.138943448662758,-0.103729814291000,0.010359254665673,0.309097319841385,-0.000951045658439,-0.077330678701401,-0.022432601079345,0.260381460189819,0.046315450221300,-0.103305436670780,0.042148567736149,0.049222484230995,-0.004068763926625,-0.137863785028458,0.031015375629067) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.064687520265579,-0.035023279488087,0.051708009094000,0.080361425876617,0.041298538446426,0.055218055844307,0.038389649242163,0.097516961395741,0.038430873304605,0.063612490892410,-0.018596081063151,-0.024947842583060,-0.035561572760344,0.074353665113449,0.038192816078663,0.100113995373249) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.050705771893263,-0.241945177316666,-0.141625687479973,-0.047030128538609,-0.203117445111275,-0.150985807180405,-0.268073171377182,0.155768141150475,0.056135341525078,0.078116655349731,0.040275365114212,0.120185695588589,0.136631816625595,-0.055560931563377,0.039425101131201,0.024685773998499) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.018305122852325,-0.058492772281170,0.010339454747736,0.248418390750885,-0.278261363506317,0.047762729227543,0.079525992274284,-0.047911476343870,-0.244404405355453,-0.036413524299860,-0.128045946359634,-0.187281727790833,-0.048455689102411,0.117647610604763,-0.252241849899292,-0.010614752769470) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.058552924543619,0.073325037956238,-0.016455166041851,0.121487483382225,-0.081702955067158,0.031804822385311,0.001640672562644,0.036341693252325,-0.113487079739571,0.086678117513657,0.060669708997011,0.021481087431312,0.055169172585011,0.019038874655962,-0.106453932821751,0.125228002667427) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.011783181689680,-0.154243305325508,-0.042685467749834,0.026228535920382,-0.052610900253057,0.115082502365112,0.017475834116340,-0.170844614505768,-0.001928581157699,-0.040190406143665,-0.037129960954189,0.069917887449265,-0.122334674000740,-0.105553455650806,0.003379808738828,0.084812544286251) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.174657180905342,-0.085658229887486,0.011552120558918,0.176031798124313,-0.054536629468203,-0.004878753330559,-0.088917210698128,0.215769767761230,-0.052326168864965,-0.019338985905051,0.115785725414753,-0.157677859067917,0.088001944124699,0.031002823263407,-0.132213190197945,0.039990335702896) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.040251065045595,-0.076165959239006,0.022292561829090,-0.091517627239227,-0.042334977537394,0.023801807314157,0.024011664092541,0.062354780733585,-0.068444639444351,0.026773937046528,0.000264234462520,-0.021117912605405,-0.013828612864017,-0.066983126103878,0.055194433778524,0.238873705267906) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.423942178487778,-0.071801945567131,0.060771774500608,0.114698313176632,0.017769867554307,0.047466076910496,0.179540991783142,0.134013250470161,0.180049285292625,-0.047069508582354,-0.049785137176514,0.035819340497255,0.089263021945953,-0.032562103122473,0.070138365030289,-0.054267156869173) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.306545376777649,-0.050251830369234,-0.035554353147745,-0.158869847655296,-0.016467658802867,0.118789546191692,-0.093757279217243,0.143189594149590,-0.011633686721325,0.012232854031026,-0.032084673643112,-0.089033804833889,-0.006195839960128,-0.048416770994663,-0.178297787904739,-0.134134694933891) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.016886182129383,0.040495090186596,-0.032451737672091,0.127966418862343,-0.035739477723837,0.054195493459702,0.049407385289669,-0.065345525741577,-0.062454696744680,-0.035225041210651,0.052661135792732,-0.068632692098618,0.054351512342691,-0.012414571829140,0.094708144664764,0.173675447702408) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.252824187278748,-0.125274851918221,-0.212334200739861,0.007005471270531,0.004618411883712,0.096262998878956,0.295785278081894,0.015930911526084,-0.259795963764191,0.017545346170664,-0.011674802750349,-0.012816754169762,0.025311160832644,-0.017922641709447,-0.015630839392543,-0.159716650843620) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.062909491360188,0.063188597559929,0.066542111337185,-0.087355583906174,-0.051772464066744,-0.458345085382462,-0.273975759744644,-0.192735239863396,-0.062436182051897,-0.067769460380077,-0.210407286882401,-0.091984525322914,0.192776113748550,0.166851192712784,-0.113231621682644,-0.139329269528389) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.031862404197454,-0.105909466743469,0.023483637720346,0.152833357453346,-0.003419104265049,0.137396991252899,0.124282427132130,0.115346238017082,0.069350756704807,-0.022194122895598,0.080700755119324,-0.350609064102173,0.149224236607552,-0.183939829468727,-0.089160002768040,0.272863268852234) * MODEL2_texOff(vec2(0,1));
res += mat4(0.071936987340450,0.065655522048473,0.161739185452461,-0.199948534369469,-0.029035177081823,0.093905106186867,0.142286315560341,0.207144752144814,0.286643415689468,0.032199043780565,-0.033868715167046,0.022050421684980,-0.010468954220414,-0.036752410233021,-0.149697527289391,-0.095286011695862) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.025005299597979,-0.045675247907639,-0.115306556224823,0.189782336354256,0.068318806588650,0.044295910745859,-0.062052950263023,0.006305217277259,0.123010911047459,-0.055522073060274,0.046757426112890,-0.023015493527055,-0.018876751884818,-0.020595209673047,0.057564843446016,-0.334748446941376) * MODEL2_texOff(vec2(1,0));
res += mat4(0.037345532327890,-0.017700105905533,0.125825941562653,-0.016541358083487,0.030622798949480,-0.041543345898390,-0.018372392281890,0.008538527414203,-0.014826230704784,-0.022402659058571,0.066360846161842,-0.380721300840378,-0.072289921343327,0.002533329185098,0.048131197690964,0.216763183474541) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.039400927722454,0.052760902792215,-0.120176367461681,-0.147037670016289,0.179011806845665,0.130261823534966,-0.071899183094501,0.005622350610793,0.049834936857224,-0.026796434074640,0.074120640754700,0.076098605990410,-0.097026951611042,0.020052315667272,0.089043311774731,0.115546889603138) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.028379322960973,-0.029866781085730,0.236097335815430,0.161698505282402,0.310515642166138,-0.039726126939058,0.162633851170540,-0.032976705580950,0.004617400467396,-0.005807513836771,-0.057009976357222,-0.112194888293743,0.151089444756508,-0.011309248395264,-0.027553267776966,-0.065261825919151) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.094486065208912,0.031690765172243,-0.010246582329273,0.025741972029209,0.156518056988716,-0.019601263105869,-0.063433088362217,0.021049331873655,0.023341113701463,0.031247427687049,0.039011925458908,-0.010693045333028,0.050863735377789,-0.001623209449463,0.036087177693844,-0.168076604604721) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.022632766515017,0.276205390691757,-0.012352503836155,-0.154147952795029,0.020205471664667,-0.164749205112457,-0.058705225586891,0.063025087118149,-0.076208628714085,-0.274888455867767,-0.022228209301829,0.345804750919342,0.185293108224869,-0.001164439949207,-0.107246160507202,0.196788057684898) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.094485387206078,-0.331144869327545,-0.223394379019737,0.354072868824005,0.216422021389008,-0.000852251308970,-0.147673159837723,-0.020216580480337,0.012340501882136,0.086593031883240,0.088951915502548,-0.098288036882877,-0.023688115179539,-0.033302154392004,0.095113590359688,-0.182997226715088) * MODEL3_texOff(vec2(0,0));
res += mat4(0.040198251605034,0.224231526255608,-0.031225182116032,0.111168116331100,0.092513427138329,0.027687465772033,-0.031873099505901,-0.110184475779533,-0.030205875635147,0.107437141239643,0.069553360342979,0.089139774441719,-0.141230896115303,-0.039166107773781,-0.035219490528107,-0.262498050928116) * MODEL3_texOff(vec2(0,1));
res += mat4(0.035531993955374,0.021193347871304,-0.014933975413442,-0.163439303636551,0.005692229606211,-0.011705378070474,-0.087395988404751,0.012775670737028,-0.058205548673868,-0.102913834154606,0.035880234092474,0.236633315682411,-0.187452167272568,-0.108284421265125,0.054838333278894,0.009359882213175) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.060715481638908,-0.051300767809153,0.027683068066835,0.093148291110992,-0.071513123810291,-0.023295229300857,0.077209867537022,-0.068784587085247,-0.124948292970657,-0.002477891743183,-0.043385360389948,-0.152198046445847,0.024953253567219,0.108386337757111,-0.001810267567635,-0.056869827210903) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.003212193027139,0.004396738484502,-0.009464070200920,-0.000754200562369,-0.037147760391235,0.033304728567600,-0.001529652974568,0.076281890273094,-0.048568379133940,0.056253828108311,0.069046929478645,-0.009447562508285,0.221382394433022,-0.043929912149906,0.020675163716078,-0.146714478731155) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.014292899519205,0.005189552437514,0.042340043932199,0.191099047660828,-0.027646558359265,-0.006862584501505,0.122641816735268,0.003590355860069,-0.184970706701279,0.012532413005829,-0.035559646785259,-0.082122050225735,-0.015211156569421,0.025341114029288,0.047450758516788,-0.064562790095806) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.035662278532982,0.004532666411251,-0.144463092088699,0.011838414706290,0.037121366709471,0.120383605360985,0.112799830734730,0.003924895077944,-0.207234650850296,0.027208646759391,-0.072912625968456,0.033461943268776,0.154238387942314,-0.070689640939236,0.126942411065102,-0.044681191444397) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.236200287938118,0.014497291296721,-0.097965493798256,0.132496476173401,0.011880044825375,0.107451677322388,-0.134403139352798,0.045002568513155,0.148175820708275,-0.001839534728788,-0.032436233013868,0.046294685453176,0.059228979051113,-0.083633095026016,-0.053955823183060,-0.065104983747005) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.104348801076412,0.073988087475300,0.197143062949181,-0.072730310261250,-0.043793011456728,-0.186590149998665,-0.123112581670284,0.188018649816513,-0.263556689023972,0.083417728543282,0.130535885691643,0.002611735137179,-0.173681661486626,-0.325907796621323,0.147832944989204,-0.044466894119978) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.197947964072227,-0.071513026952744,-0.160653144121170,-0.119516491889954,0.008574048988521,0.134900510311127,0.473737627267838,-0.186750426888466,-0.516900420188904,-0.020949838683009,0.049820102751255,-0.095803514122963,-0.261862367391586,0.315137982368469,0.091770283877850,0.124155752360821) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.159516319632530,-0.139868333935738,-0.062398713082075,-0.205452486872673,-0.019114365801215,0.304245412349701,0.086860984563828,-0.241124689579010,0.040820728987455,-0.017057493329048,-0.177344232797623,0.116872616112232,-0.094111107289791,-0.132026165723801,-0.028937522321939,-0.128285050392151) * MODEL4_texOff(vec2(0,1));
res += mat4(0.045472763478756,0.060853570699692,-0.014389489777386,-0.041916873306036,0.047279216349125,0.027571285143495,0.071487322449684,0.092611089348793,0.091603688895702,0.045476473867893,0.090541101992130,0.092513270676136,0.076405592262745,-0.069645099341869,0.048767790198326,0.052489459514618) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.061449602246284,-0.030613908544183,0.029211293905973,-0.245625495910645,-0.052465233951807,0.123810730874538,0.009162431582808,0.127965629100800,0.215558394789696,0.019848892465234,-0.062922991812229,-0.074549041688442,0.130555912852287,-0.070752583444118,-0.019215783104300,-0.012135467492044) * MODEL4_texOff(vec2(1,0));
res += mat4(0.131087273359299,-0.069049827754498,-0.006326967384666,-0.041985332965851,0.102507449686527,0.040690466761589,0.012749020010233,0.037642609328032,0.065208867192268,0.029155600816011,0.002800448331982,0.011264129541814,-0.038086123764515,-0.012202353216708,0.040117308497429,0.000260548142251) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.168995708227158,0.017765715718269,-0.237817749381065,-0.047342620790005,-0.067182391881943,0.125391483306885,0.029744185507298,0.068127028644085,-0.267225146293640,0.008672907017171,-0.027350228279829,0.068260185420513,-0.033087205141783,-0.126552075147629,-0.071633718907833,-0.036583449691534) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.353097170591354,-0.128316834568977,-0.112320274114609,0.009260116145015,-0.020987277850509,-0.100569859147072,-0.123285867273808,-0.022985212504864,-0.190797135233879,0.022755043581128,-0.159714087843895,0.079850085079670,-0.051028978079557,0.093778364360332,-0.201981082558632,-0.129500627517700) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.042488671839237,-0.028888158500195,0.059045176953077,-0.166239753365517,-0.101080022752285,0.011639146134257,0.007829866372049,0.051848292350769,-0.153271868824959,0.000440002884716,-0.030194107443094,0.032915908843279,-0.042011149227619,-0.021814798936248,-0.039797149598598,-0.051672331988811) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.012428685091436,-0.011059525422752,-0.144690871238708,0.074009262025356,0.041048038750887,-0.063886992633343,-0.105402857065201,0.071514241397381,0.164358198642731,0.006438038777560,0.040268361568451,0.117195442318916,0.085127972066402,-0.405382186174393,-0.164778709411621,0.222228705883026) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.065510354936123,-0.001380604691803,-0.258287161588669,-0.052703253924847,0.012618144042790,-0.041301537305117,0.053530175238848,-0.207334309816360,0.189593151211739,0.006385242100805,-0.106952898204327,0.007775560487062,0.178324878215790,0.326051205396652,0.107945509254932,-0.584044635295868) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.039759047329426,0.003499883925542,0.172181949019432,-0.117957226932049,-0.009454603306949,-0.059415180236101,-0.056931242346764,0.001314147259109,0.041019964963198,-0.002293048659340,0.175719395279884,-0.075915783643723,0.048812180757523,-0.179027616977692,-0.076023869216442,0.030671263113618) * MODEL5_texOff(vec2(0,1));
res += mat4(0.090483985841274,-0.034045275300741,-0.074091054499149,0.143019378185272,0.022352170199156,0.081611827015877,-0.053208012133837,-0.047069568186998,0.129368424415588,-0.005784474313259,-0.042140189558268,0.074106365442276,-0.032704278826714,0.011608705855906,0.041651617735624,-0.000108379324956) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.118729196488857,0.003190629882738,0.129600107669830,-0.053390834480524,0.109961569309235,0.043553970754147,-0.007616886403412,-0.039280023425817,-0.212105348706245,0.029233144596219,0.198803365230560,0.066216245293617,-0.229628279805183,0.029215471819043,-0.027394907549024,-0.074884355068207) * MODEL5_texOff(vec2(1,0));
res += mat4(0.026896875351667,-0.051124848425388,0.001733518089168,0.029812432825565,0.012830334715545,-0.047389496117830,-0.068496786057949,-0.056616134941578,0.084831468760967,0.060644697397947,-0.025795057415962,0.062849804759026,0.001524348394014,0.098940439522266,0.007453685160726,0.029437242075801) * MODEL5_texOff(vec2(1,1));
res += mat4(0.023359816521406,-0.010615163482726,0.021661233156919,0.166473433375359,0.062967486679554,-0.028788123279810,0.030911436304450,0.004497709218413,-0.135743245482445,-0.111070021986961,-0.244980618357658,-0.013415934517980,0.172987297177315,0.131244480609894,-0.031089387834072,-0.120705924928188) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.195378080010414,0.086343377828598,0.034966081380844,-0.204234421253204,0.006348349619657,0.010926298797131,-0.074259109795094,-0.052707046270370,-0.158590659499168,0.024614857509732,0.274884581565857,0.084630236029625,0.007303384598345,0.005248519591987,-0.186501637101173,0.081251360476017) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.009541896171868,0.011436162516475,-0.086672507226467,0.075243301689625,0.000461296061985,-0.004099882207811,0.034529484808445,-0.010569998063147,-0.104803085327148,0.030857672914863,0.076728940010071,-0.001619643880986,-0.040598023682833,-0.083094805479050,0.013462098315358,0.008017360232770) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.145251095294952,-0.158093243837357,0.000175513341674,0.182097136974335,0.190720841288567,0.077520608901978,-0.214723661541939,-0.002075484953821,0.091562561690807,0.321365982294083,0.064473032951355,-0.091265551745892,-0.106043525040150,0.279244542121887,-0.074629902839661,-0.074120044708252) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.306707620620728,-0.051019962877035,-0.047434817999601,-0.146494612097740,0.032014772295952,-0.135942116379738,0.232718363404274,-0.010536476038396,-0.026766637340188,-0.258946001529694,-0.039032533764839,0.356639176607132,-0.218664631247520,-0.089903011918068,-0.014490544795990,0.179478198289871) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.196754276752472,0.056564852595329,0.004481017123908,-0.165948048233986,-0.025443034246564,0.102772213518620,0.061993248760700,0.036415442824364,-0.104675389826298,0.128049731254578,-0.011757478117943,0.149839773774147,0.036982260644436,0.144729897379875,-0.078198738396168,0.058534927666187) * MODEL6_texOff(vec2(0,1));
res += mat4(0.030038665980101,0.072564586997032,0.066301241517067,-0.039875429123640,-0.111647598445415,-0.011843540705740,0.005777427926660,-0.062893547117710,-0.128303810954094,0.005435097031295,0.045334380120039,-0.166085019707680,-0.033184133470058,-0.078817598521709,-0.026358971372247,0.029070500284433) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.239812910556793,-0.065102487802505,-0.089845649898052,0.032403770834208,-0.057452160865068,-0.018425470218062,0.046675737947226,-0.104448772966862,-0.059114463627338,0.033982321619987,0.021492065861821,0.138412669301033,0.063864067196846,0.063928037881851,-0.069544509053230,-0.001917697954923) * MODEL6_texOff(vec2(1,0));
res += mat4(0.007449897006154,0.033524688333273,0.103525601327419,-0.049777720123529,0.054058998823166,-0.101022101938725,0.042860526591539,0.042423602193594,0.089753784239292,-0.046222575008869,-0.116501197218895,0.080853469669819,0.073145501315594,-0.056701838970184,0.013519139029086,-0.121642261743546) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.002499757101759,0.617371320724487,0.014959186315536,-0.029674060642719) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.105370186269283,-0.160166487097740,-0.126055553555489,-0.287340402603149);
res += mat4(0.012449993751943,-0.153016135096550,-0.011935818940401,0.000903878244571,0.097625628113747,0.059907279908657,0.071201607584953,0.161265224218369,0.115426793694496,0.012025958858430,0.011574633419514,0.094791010022163,-0.027014127001166,0.018641298636794,0.058062344789505,0.031739994883537) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.031808666884899,0.068548932671547,0.131572917103767,0.016121549531817,0.310570180416107,0.043945476412773,-0.108656331896782,0.232901647686958,0.253582388162613,-0.033118262887001,0.094001673161983,0.302259564399719,0.125986024737358,0.059615645557642,0.097742684185505,0.158229827880859) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.122644431889057,-0.000718649826013,-0.026080697774887,0.083285883069038,0.169386684894562,0.015990497544408,0.207341089844704,0.124808914959431,0.105791002511978,0.029148589819670,-0.038124945014715,0.123188354074955,0.046937905251980,0.113863691687584,0.072057828307152,0.081630185246468) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.067917644977570,-0.358764618635178,-0.019291365519166,0.087828174233437,0.144168376922607,0.096087068319321,0.107906229794025,0.056646328419447,0.047500982880592,-0.013649441301823,-0.292834311723709,-0.040964052081108,0.084925137460232,-0.045484218746424,-0.108022868633270,0.139098301529884) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.061967786401510,0.394177705049515,0.059756688773632,0.006770377978683,-0.138051033020020,0.108028843998909,-0.165389388799667,0.258862048387527,-0.068774871528149,-0.010493239387870,0.234312444925308,-0.520082533359528,0.056425299495459,0.208363369107246,0.024314338341355,0.095544524490833) * MODEL1_texOff(vec2(0,0));
res += mat4(0.002602643566206,0.053468599915504,-0.018332546576858,-0.016623051837087,0.081210806965828,-0.089729547500610,0.047706592828035,0.011366131715477,-0.089365385472775,0.049156054854393,-0.090649060904980,-0.219625011086464,0.006289157085121,-0.401327401399612,0.096146360039711,0.123284362256527) * MODEL1_texOff(vec2(0,1));
res += mat4(0.031681198626757,-0.073915369808674,0.026311455294490,0.023494111374021,0.025667792186141,0.104355655610561,0.088051922619343,-0.067694775760174,0.156801104545593,-0.028583595529199,-0.055150326341391,0.053591176867485,0.038753733038902,-0.035869125276804,0.050464574247599,-0.036132872104645) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.038260646164417,0.067553356289864,-0.111593060195446,-0.091539517045021,-0.028888752683997,0.099845714867115,0.108150571584702,-0.359660893678665,0.118431359529495,-0.033689036965370,-0.046670962125063,0.004216512199491,0.072795204818249,0.189891174435616,0.108737625181675,-0.101358510553837) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.062036190181971,-0.012557640671730,0.002539873123169,-0.068353734910488,0.013037295080721,-0.039629314094782,-0.080267332494259,-0.227091446518898,0.023148588836193,0.016681512817740,-0.052311323583126,-0.010181584395468,0.063574947416782,-0.216161742806435,0.174526453018188,-0.207331493496895) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.248866349458694,-0.068960383534431,0.077389635145664,-0.110082522034645,0.075648538768291,0.138726860284805,0.063789755105972,0.082233160734177,0.387180924415588,-0.208592891693115,-0.180419117212296,0.192393571138382,0.040415655821562,-0.043933797627687,-0.006731813307852,0.025834394618869) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.360985845327377,0.071139290928841,-0.070599868893623,-0.269301384687424,0.056657716631889,0.091842576861382,0.200436219573021,0.045839022845030,0.141035780310631,0.012488815933466,-0.050712443888187,-0.014739877544343,-0.100591592490673,0.023280400782824,-0.001459882594645,-0.010417684912682) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.039256967604160,0.041317835450172,0.107766889035702,0.028649032115936,0.016064589843154,-0.083026573061943,-0.075947798788548,0.014250141568482,-0.007685485761613,-0.302290976047516,0.228411823511124,-0.032247357070446,0.062447469681501,-0.095208086073399,0.152380377054214,0.103730291128159) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.053494907915592,0.022560097277164,0.092647098004818,-0.065886706113815,-0.077699378132820,0.147774875164032,-0.019360281527042,-0.074018679559231,-0.267109692096710,-0.028874360024929,-0.204125776886940,-0.199021950364113,0.038560010492802,0.029895978048444,0.012604345567524,-0.109988398849964) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.144946172833443,0.079580888152122,-0.069605506956577,0.012116378173232,0.003140127984807,-0.284754902124405,0.219830945134163,0.007521242368966,-0.204893007874489,-0.049561124294996,-0.186488315463066,-0.005176369566470,0.234074681997299,0.107104301452637,-0.284958332777023,0.096496485173702) * MODEL2_texOff(vec2(0,0));
res += mat4(0.130678564310074,0.002822928363457,0.188208967447281,0.074946932494640,-0.021973175927997,-0.179860934615135,-0.092713385820389,0.086214885115623,0.029619345441461,-0.284133434295654,0.181792929768562,0.057449296116829,0.166443139314651,-0.319674611091614,0.329863220453262,0.025465888902545) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.101553969085217,0.055325292050838,-0.229185312986374,-0.017629584297538,-0.058620549738407,0.109790399670601,0.045861687511206,0.057259056717157,0.238834112882614,0.172877267003059,-0.008667658083141,0.140306770801544,0.042403690516949,-0.000180366754648,-0.018861684948206,-0.010183339007199) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.096481740474701,-0.136799275875092,0.172524467110634,0.027101065963507,-0.151609823107719,0.105279818177223,0.169025257229805,-0.004525552038103,-0.011042438447475,-0.030856488272548,-0.230505719780922,0.069530978798866,0.089694783091545,-0.043158702552319,-0.036517057567835,0.016409089788795) * MODEL2_texOff(vec2(1,0));
res += mat4(0.000411983404774,0.182407334446907,-0.077461957931519,0.110941618680954,0.093800470232964,-0.052216090261936,-0.116431601345539,0.084729529917240,-0.150737300515175,-0.159573629498482,0.053674072027206,0.068332806229591,0.004926061257720,-0.139837279915810,0.227506458759308,-0.028340496122837) * MODEL2_texOff(vec2(1,1));
res += mat4(0.021716281771660,0.050744902342558,-0.059564944356680,0.023217665031552,0.093972057104111,-0.046579245477915,-0.054910484701395,0.057645302265882,0.037241470068693,-0.143824487924576,0.016915827989578,0.013713676482439,-0.096869572997093,0.024609360843897,-0.018448287621140,-0.097184538841248) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.035892181098461,-0.162121638655663,0.155622884631157,0.044068623334169,0.145203173160553,-0.032929457724094,0.126656964421272,0.092734441161156,-0.063659541308880,0.076165921986103,-0.035266004502773,-0.018775481730700,0.129777669906616,0.003470234107226,-0.017598994076252,0.037416074424982) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.033270776271820,0.189310818910599,-0.033847320824862,-0.038100097328424,0.040313139557838,-0.053424932062626,-0.112719930708408,0.065354451537132,-0.025618216022849,-0.088970094919205,-0.129944682121277,0.025522856041789,0.346095025539398,-0.089431799948215,-0.019861729815602,0.147685244679451) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.005151752848178,0.013736709021032,0.209755614399910,0.046098377555609,0.084108129143715,-0.055781342089176,0.044261723756790,0.164431199431419,-0.058885857462883,-0.129722848534584,0.138184353709221,0.003859847318381,0.212550729513168,-0.121035858988762,-0.123469069600105,0.191329881548882) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.048109538853168,-0.016529140993953,0.007001984864473,-0.108790814876556,0.143976658582687,0.143833667039871,-0.014343079179525,0.355005890130997,0.035407770425081,0.333059370517731,0.234875991940498,0.055114295333624,0.030793583020568,0.027549220249057,-0.244631141424179,0.069847859442234) * MODEL3_texOff(vec2(0,0));
res += mat4(0.029197068884969,0.234600320458412,-0.194261193275452,-0.035668309777975,0.109849810600281,0.016624215990305,0.016343271359801,0.171366214752197,0.101591631770134,0.057677581906319,-0.157206490635872,0.073690056800842,-0.259306013584137,-0.066595390439034,0.148147240281105,-0.046197976917028) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.059016909450293,-0.051768522709608,-0.000328578928020,-0.001629866193980,0.042106874287128,0.058021470904350,0.018301444128156,-0.097265712916851,0.011706593446434,-0.079128459095955,0.011325160041451,0.015378053300083,-0.114027440547943,0.012028121389449,-0.150530710816383,0.013634598813951) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.055252838879824,-0.173517704010010,0.205142840743065,0.040156584233046,-0.034731969237328,-0.002862765919417,-0.031948313117027,0.180274635553360,0.192412182688713,0.129945829510689,-0.061353743076324,0.034301646053791,-0.084936641156673,0.009649236686528,0.032746650278568,-0.004060826264322) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.142082646489143,0.089221924543381,-0.077251404523849,0.047243878245354,0.043925300240517,-0.022700496017933,0.064723767340183,-0.023467503488064,0.052998658269644,-0.009742856025696,-0.085691355168819,-0.005141644272953,0.130618005990982,-0.025163851678371,0.167262047529221,0.089377902448177) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.045004129409790,0.212822705507278,-0.268129110336304,0.084473811089993,0.029757507145405,-0.044626921415329,0.132623046636581,0.012651069089770,0.005658267531544,-0.013475270010531,-0.085262037813663,-0.067169532179832,0.011368300765753,0.073404461145401,0.085812941193581,-0.005928469356149) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.150360465049744,-0.107566833496094,-0.003578116185963,0.002213767264038,-0.020351408049464,0.016847984865308,0.112495511770248,-0.085315406322479,-0.069719292223454,0.010483915917575,-0.100547283887863,-0.098687641322613,0.070151552557945,-0.092005833983421,-0.148120597004890,0.050584133714437) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.027921559289098,0.009064431302249,0.001782972831279,0.048102848231792,-0.056933976709843,0.212939739227295,-0.067326627671719,-0.015897313132882,0.101012095808983,-0.034099448472261,0.018338941037655,0.041583057492971,-0.016618587076664,0.013787562958896,-0.000622313062195,-0.002607230562717) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.139329865574837,0.291584134101868,-0.480773121118546,0.074580959975719,0.028193125501275,0.065963514149189,0.051950201392174,0.026795567944646,0.006813440006226,0.140819936990738,-0.273141950368881,-0.029254250228405,0.008508259430528,-0.020703800022602,0.124115779995918,-0.046013802289963) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.227795079350471,-0.119538597762585,-0.151879668235779,0.027504367753863,-0.062432561069727,0.274913102388382,0.090111851692200,-0.062600784003735,0.293187499046326,-0.188191398978233,-0.207095548510551,-0.047618426382542,-0.085212454199791,0.108439847826958,-0.167059421539307,-0.074188701808453) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.092600099742413,-0.187443271279335,-0.074017301201820,-0.096585549414158,-0.145243957638741,0.602534830570221,-0.166945636272430,-0.045463539659977,0.096850253641605,0.027353959158063,0.247902423143387,-0.002574616810307,-0.116441182792187,0.064178742468357,0.059354510158300,-0.038258086889982) * MODEL4_texOff(vec2(0,1));
res += mat4(0.017522390931845,0.229870557785034,-0.324747294187546,-0.068804323673248,-0.052616685628891,-0.006081676576287,0.086092911660671,0.042404603213072,-0.155483573675156,-0.006516867782921,-0.003230480244383,0.116522833704948,-0.005009222310036,-0.036837562918663,0.079705722630024,0.012111474759877) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.078880622982979,-0.285526812076569,-0.070414260029793,0.024305270984769,-0.117448180913925,-0.020681234076619,0.093845739960670,-0.026923697441816,-0.269918978214264,0.074046060442924,0.081434920430183,0.113010212779045,0.194010779261589,0.016450870782137,0.026849951595068,-0.261798918247223) * MODEL4_texOff(vec2(1,0));
res += mat4(0.221743017435074,-0.072566427290440,-0.056796412914991,0.019428508356214,0.069443702697754,0.215172439813614,-0.110194422304630,0.039424117654562,-0.049029190093279,0.068472579121590,0.022358160465956,0.000998455565423,0.053397301584482,-0.081741161644459,-0.080270171165466,-0.067182227969170) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.092598050832748,0.020894601941109,-0.026985198259354,-0.008799365721643,0.005987183190882,-0.026130439713597,-0.067097164690495,0.006776324938983,-0.062849909067154,0.050838660448790,0.083015441894531,-0.092638947069645,0.032155867666006,0.048285461962223,-0.179008051753044,-0.056078128516674) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.124835550785065,-0.098043642938137,-0.032357659190893,-0.064551703631878,0.028803301975131,-0.243303656578064,0.047399207949638,0.090490274131298,-0.106980241835117,0.059403967112303,0.079077355563641,-0.078385263681412,0.061806216835976,-0.009949353523552,-0.023593988269567,0.003999119158834) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.003360418137163,-0.109490327537060,-0.091331504285336,0.038125779479742,-0.074282027781010,0.090251870453358,0.000170427505509,-0.043372604995966,-0.078557476401329,0.073123931884766,0.021064011380076,-0.117227703332901,-0.039686057716608,0.012759775854647,-0.062517695128918,-0.064750455319881) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.037968628108501,0.021007025614381,-0.068901054561138,0.013182340189815,0.095040276646614,-0.029732216149569,-0.065747126936913,0.052889645099640,-0.136262580752373,0.131575569510460,-0.096592232584953,0.046094983816147,-0.042240843176842,0.115634068846703,-0.272951930761337,-0.041395030915737) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.047044795006514,-0.125897303223610,0.013067829422653,-0.195248410105705,0.144815400242805,0.081325918436050,-0.153822541236877,0.124649040400982,-0.173296764492989,0.049307011067867,0.157269448041916,0.392190903425217,-0.088671848177910,0.164713755249977,0.130599945783615,-0.250833034515381) * MODEL5_texOff(vec2(0,0));
res += mat4(0.013182654045522,-0.044407479465008,0.055960223078728,-0.213842824101448,-0.005571981426328,0.061532475054264,-0.028468124568462,0.040862444788218,-0.113597899675369,0.060569740831852,0.021067760884762,0.136368855834007,0.077448710799217,0.008162672631443,0.031320326030254,-0.023716475814581) * MODEL5_texOff(vec2(0,1));
res += mat4(0.014344005845487,-0.009807798080146,-0.008023295551538,-0.004042506683618,0.057047713547945,0.091828547418118,-0.021558672189713,-0.027315398678184,-0.070389188826084,0.123759664595127,0.050205033272505,0.104543074965477,0.103808335959911,0.086576946079731,-0.216205567121506,0.063556179404259) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.260408878326416,-0.072798609733582,-0.088806264102459,-0.148147091269493,0.107321023941040,0.012004368938506,-0.135747060179710,0.058238923549652,-0.423597782850266,0.057579401880503,0.031978651881218,-0.065129451453686,0.062906466424465,-0.050406824797392,0.170704156160355,0.224911510944366) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.031351882964373,-0.017251335084438,0.054689869284630,0.057615745812654,-0.018932716920972,-0.006814411375672,0.059463731944561,-0.127870082855225,-0.168019488453865,0.097420431673527,0.121871441602707,0.094731487333775,0.085836686193943,0.038481086492538,-0.098413817584515,0.063852362334728) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.062126420438290,0.017788341268897,-0.015199102461338,-0.074660167098045,-0.006309310905635,0.066340871155262,-0.001656621461734,0.022265899926424,-0.042425855994225,-0.007579929195344,-0.044087797403336,0.030813645571470,-0.034489970654249,-0.040135275572538,-0.013025298714638,-0.091053366661072) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.002350885653868,-0.060370475053787,-0.143018200993538,-0.074488371610641,0.045688271522522,0.005131868179888,-0.019801992923021,0.082440219819546,-0.064292505383492,-0.141090571880341,0.082124449312687,-0.040831059217453,0.121947996318340,0.119684569537640,-0.023712590336800,0.073332034051418) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.081619322299957,-0.067272707819939,0.080893270671368,-0.015525938943028,0.014087864197791,0.082796163856983,0.042462907731533,-0.019942728802562,-0.081261970102787,-0.080736063420773,-0.135192111134529,-0.087168447673321,-0.074082650244236,-0.236312672495842,-0.048189390450716,0.037576720118523) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.035415660589933,-0.021361453458667,-0.032072253525257,0.121571712195873,-0.166139915585518,0.031762383878231,-0.004843515343964,-0.220176368951797,-0.085374012589455,-0.001349950442091,0.143009141087532,-0.042783617973328,-0.087915681302547,-0.042164314538240,0.287170141935349,-0.062561966478825) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.079952500760555,-0.060452774167061,0.026479899883270,-0.239796698093414,-0.211814865469933,-0.165441721677780,0.056400276720524,-0.411230653524399,0.161773890256882,-0.218472465872765,0.124503403902054,0.099862582981586,-0.301448374986649,-0.160620555281639,0.255622774362564,0.007702963426709) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.039252512156963,-0.022922342643142,-0.050456292927265,0.031199080869555,-0.067194722592831,0.046115260571241,-0.027633996680379,-0.099824547767639,0.032000482082367,-0.110407121479511,-0.138044193387032,0.012141625396907,-0.007128241471946,-0.064211912453175,-0.243462711572647,-0.071959614753723) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.219416081905365,0.105737462639809,-0.170234799385071,-0.007958011701703,0.068689085543156,-0.068404994904995,-0.002716401359066,0.155987635254860,-0.082629919052124,-0.041308429092169,-0.010379958897829,-0.050674282014370,0.014382989145815,-0.042081188410521,0.023886878043413,-0.091307856142521) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.191344559192657,-0.093558743596077,0.184995532035828,-0.550332427024841,0.022159336134791,-0.026328882202506,-0.047176104038954,0.326087355613708,-0.078241139650345,-0.106574155390263,-0.037172157317400,0.051474481821060,0.080788277089596,0.002264628419653,0.017712153494358,-0.208995044231415) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.190021008253098,0.036833163350821,-0.014405254274607,-0.290545403957367,0.009016192518175,-0.060878630727530,-0.022207649424672,0.107980601489544,-0.077347025275230,-0.046803530305624,-0.028320183977485,0.026148557662964,0.095297940075397,0.018619114533067,-0.076105095446110,-0.134878948330879) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.047650858759880,-0.003466810099781,0.067566484212875,0.002116234041750) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.163518175482750,-0.005142828915268,0.054552864283323,-0.239126369357109);
res += mat4(0.111529037356377,0.052022472023964,0.070385284721851,-0.197769761085510,0.155390605330467,0.004559502471238,0.009998093359172,0.217305853962898,0.091854639351368,0.120534181594849,-0.002960686571896,0.122561126947403,-0.006658839993179,0.062729611992836,-0.001850919099525,0.002475434914231) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.014527713879943,0.073493361473083,0.029139116406441,0.091059714555740,-0.185776785016060,-0.207682847976685,-0.196589142084122,0.028633264824748,-0.199897691607475,-0.161661624908447,-0.249917134642601,0.184762224555016,-0.127584815025330,0.006150756962597,-0.144531831145287,-0.064722269773483) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.023858159780502,-0.041882775723934,-0.071869425475597,0.003370354417711,0.080941855907440,-0.019517175853252,-0.017811851575971,-0.063140213489532,0.236799538135529,0.016243128105998,-0.016043284907937,-0.046652294695377,-0.040283493697643,0.178435832262039,0.040030755102634,-0.025437081232667) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.098706103861332,-0.010794626548886,0.088003240525723,-0.068771280348301,-0.069507002830505,0.002063452266157,-0.010144931264222,-0.250796139240265,0.191092550754547,-0.023465404286981,-0.151168495416641,0.268260091543198,0.020199863240123,-0.079539500176907,-0.085472688078880,-0.017139462754130) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.113184958696365,0.069257967174053,-0.101423762738705,-0.197476699948311,-0.091239742934704,0.100741304457188,-0.157447442412376,0.219942837953568,-0.199596971273422,0.209527984261513,0.159563302993774,-0.339873284101486,-0.191008493304253,0.035137884318829,-0.047974083572626,-0.285814702510834) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.005213784985244,0.122055195271969,0.125074893236160,0.093999058008194,0.047931350767612,-0.058617968112230,-0.093809410929680,-0.036825932562351,-0.208071336150169,0.064884014427662,0.039314992725849,0.007328342646360,-0.072169825434685,-0.054621439427137,-0.010584398172796,0.040056612342596) * MODEL1_texOff(vec2(0,1));
res += mat4(0.006983501370996,-0.007722968235612,0.001631918945350,-0.130501791834831,-0.106789700686932,-0.017874300479889,0.021289655938745,-0.083071202039719,-0.030122267082334,-0.016491454094648,-0.122346207499504,-0.015053985640407,-0.024401081725955,0.079216316342354,-0.089128404855728,0.016147611662745) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.017202308401465,0.117498926818371,0.023625424131751,0.002270163502544,0.137540668249130,0.031553238630295,0.023547336459160,-0.085454545915127,0.128526389598846,-0.035546910017729,0.076291702687740,-0.031734623014927,0.014383011497557,0.163979709148407,0.004661466926336,-0.165058389306068) * MODEL1_texOff(vec2(1,0));
res += mat4(0.088431358337402,-0.004957917146385,0.059209913015366,0.003587557701394,-0.005614102352411,0.015584722161293,-0.045887034386396,0.070985488593578,-0.029528686776757,-0.045251268893480,-0.050354938954115,0.013355011120439,-0.160431385040283,0.044818568974733,-0.001350683742203,-0.077817626297474) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.064484894275665,0.053839676082134,0.087369881570339,-0.027971094474196,-0.028903005644679,-0.007779140491039,0.050175223499537,0.092289634048939,-0.059582978487015,-0.018926158547401,-0.045975763350725,0.016080105677247,-0.117277957499027,-0.048494510352612,-0.037171836942434,0.051703482866287) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.144009664654732,0.157564923167229,0.150496333837509,-0.053829099982977,-0.064643725752831,0.005530547816306,-0.016969844698906,0.023447487503290,-0.039457853883505,-0.055961143225431,-0.096354968845844,-0.062998577952385,0.121878273785114,0.127708181738853,0.098819024860859,-0.060238152742386) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.050097968429327,-0.021973215043545,0.045688260346651,-0.004705760162324,-0.041519507765770,-0.001619437593035,-0.036178346723318,-0.060555569827557,0.093350529670715,0.066492736339569,0.063230447471142,0.047034084796906,0.079453982412815,-0.013246919959784,0.033174682408571,0.105353765189648) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.060634013265371,-0.064537629485130,0.022973798215389,-0.042761433869600,0.113090217113495,-0.052646160125732,0.025671642273664,0.301865309476852,0.069603741168976,0.109434701502323,0.069375135004520,-0.060510739684105,-0.002458672504872,0.023776711896062,-0.019300764426589,0.032479185611010) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.329134911298752,-0.052488934248686,0.058165151625872,0.023459732532501,0.048858430236578,-0.090111434459686,-0.014301916584373,-0.273706674575806,0.047631856054068,-0.037321716547012,-0.060043033212423,-0.084376126527786,-0.196561217308044,-0.048011977225542,0.065573230385780,-0.253671765327454) * MODEL2_texOff(vec2(0,0));
res += mat4(0.069962717592716,-0.055029388517141,0.043264772742987,-0.062167678028345,-0.121204242110252,0.044801302254200,-0.135278984904289,0.180471345782280,-0.171415984630585,-0.029807519167662,0.010368883609772,0.097300790250301,0.278509378433228,0.051012758165598,0.137604758143425,-0.051166068762541) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.157121315598488,0.019185906276107,-0.029869157820940,-0.017960486933589,0.048605062067509,-0.065903931856155,-0.002384538296610,0.259082168340683,0.036510907113552,-0.047161955386400,0.052611891180277,0.039264734834433,-0.156972348690033,-0.009692138992250,-0.041162218898535,0.003371070837602) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.007773894816637,0.009956259280443,-0.010738101787865,-0.105080358684063,-0.075684174895287,0.000365333748050,0.011518584564328,-0.162272602319717,-0.036420952528715,-0.059625241905451,-0.063431315124035,-0.064733266830444,0.054229866713285,0.005175468511879,-0.020048569887877,0.039751712232828) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.107165396213531,0.028413133695722,-0.017955029383302,0.085660681128502,-0.077072799205780,0.013186835683882,-0.073535062372684,-0.000655364303384,0.085395298898220,0.011089853942394,-0.021828984841704,0.083526886999607,-0.120201893150806,-0.053589016199112,0.055426433682442,-0.006463875528425) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.072947606444359,-0.024760968983173,0.001839063712396,-0.072192490100861,-0.015151211991906,-0.011057009920478,0.034983191639185,0.003036468755454,0.054630208760500,-0.002267056610435,0.000337197183399,0.058797877281904,0.064213812351227,0.097569577395916,0.038428612053394,-0.022968409582973) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.110559478402138,0.002715057460591,-0.017854526638985,0.102367021143436,0.113678909838200,-0.035911217331886,0.124435193836689,-0.204032525420189,0.074107341468334,0.285594671964645,-0.108142033219337,-0.058011725544930,0.047073509544134,-0.041760060936213,-0.122198730707169,0.116460345685482) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.161766260862350,0.092485286295414,-0.019762635231018,-0.029354719445109,-0.153952464461327,-0.001406714087352,0.039189741015434,0.065868429839611,-0.028034314513206,0.146025985479355,-0.033532094210386,0.010127112269402,-0.030029200017452,-0.026318438351154,-0.072170205414295,-0.022075237706304) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.031294628977776,-0.079732887446880,0.040741633623838,-0.134970709681511,-0.002112061483786,0.050919536501169,0.041618525981903,0.013590732589364,0.084951937198639,0.143543556332588,-0.222488984465599,0.151335537433624,-0.013181689195335,-0.029883887618780,-0.039823766797781,0.167481362819672) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.006076188292354,0.095680400729179,0.094025231897831,0.195634841918945,-0.063780970871449,-0.259424209594727,-0.267253398895264,-0.031840100884438,-0.076961323618889,-0.480837315320969,0.179173335433006,0.002024752786383,-0.089885838329792,0.001734353601933,-0.121297299861908,-0.092553488910198) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.167992264032364,-0.068684704601765,-0.155788168311119,0.094235174357891,-0.083220079541206,-0.042325869202614,-0.014008054509759,-0.075073540210724,0.068968757987022,0.147470980882645,-0.302320033311844,0.121094428002834,-0.036351468414068,0.129358202219009,0.093675777316093,-0.055597696453333) * MODEL3_texOff(vec2(0,1));
res += mat4(0.113874763250351,-0.027380499988794,0.028029190376401,0.013207810930908,-0.036578726023436,0.030136650428176,0.000464422511868,-0.154043480753899,-0.052514106035233,0.033278230577707,-0.001351456274278,-0.043508067727089,0.003894593333825,0.044703435152769,-0.033862452954054,-0.038190707564354) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.094546236097813,-0.125726044178009,-0.018389208242297,-0.163237422704697,0.033682141453028,0.088411957025528,-0.086532324552536,0.077539891004562,-0.007002222817391,0.177334234118462,-0.085184656083584,-0.014010046608746,0.188199460506439,0.004192020744085,-0.069399163126945,0.149015933275223) * MODEL3_texOff(vec2(1,0));
res += mat4(0.035434249788523,0.142908304929733,-0.002800659975037,-0.050085008144379,0.021453192457557,0.088936410844326,-0.029626227915287,-0.006436384748667,0.029230676591396,0.124383769929409,0.043014232069254,0.125309541821480,-0.001105128671043,-0.073447853326797,0.066878594458103,-0.047481644898653) * MODEL3_texOff(vec2(1,1));
res += mat4(0.050287451595068,-0.035976428538561,0.006138337310404,0.145708084106445,0.013225377537310,0.029959162697196,0.030082223936915,0.087825559079647,-0.033071029931307,0.011456874199212,-0.037670858204365,-0.087388604879379,-0.062063802033663,0.054798509925604,-0.003662796691060,-0.005042023491114) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.019810751080513,0.106795556843281,0.124019056558609,0.022169321775436,-0.006978584453464,-0.076127924025059,-0.039685495197773,-0.048558637499809,0.124064020812511,0.102319218218327,-0.027791021391749,-0.036247700452805,-0.258853137493134,-0.197300672531128,-0.197860628366470,0.025621203705668) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.087873794138432,-0.101097606122494,-0.016914516687393,0.085493251681328,-0.115939140319824,0.006956357043236,0.086478605866432,-0.002265531569719,-0.065543659031391,0.020206376910210,-0.047608032822609,0.025049373507500,0.001251898240298,-0.021477907896042,-0.018060980364680,-0.018332015722990) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.007317510433495,0.041878454387188,0.022606596350670,0.123865231871605,0.069444231688976,0.014624440111220,0.048404559493065,0.066611684858799,0.053793862462044,0.044925879687071,-0.072491928935051,0.238154426217079,0.015296905301511,-0.075132898986340,-0.079234138131142,0.067712366580963) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.158132687211037,-0.084194414317608,0.079821258783340,-0.265209496021271,-0.289387017488480,0.023760413751006,-0.120450027287006,0.337601125240326,-0.030547576025128,-0.075831703841686,-0.026935789734125,-0.259228825569153,-0.078658506274223,0.490626335144043,0.071734160184860,0.404582619667053) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.083940200507641,-0.002383296610788,0.010582274757326,-0.054519869387150,0.268589526414871,-0.251438319683075,0.083830840885639,-0.239043265581131,0.186893194913864,0.094372645020485,0.032498843967915,-0.059058886021376,-0.057856023311615,-0.124487176537514,-0.019624572247267,-0.076097153127193) * MODEL4_texOff(vec2(0,1));
res += mat4(0.091111190617085,0.033262759447098,0.020100954920053,0.070647880434990,-0.014834028668702,0.021042916923761,0.000604841392487,-0.041732806712389,0.076565846800804,0.054270558059216,-0.010616828687489,0.100211843848228,-0.031083848327398,-0.026793887838721,-0.049872133880854,0.149641096591949) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.144970729947090,0.016550689935684,0.051859404891729,-0.085721522569656,0.044167630374432,0.082720309495926,0.068507745862007,0.207789704203606,-0.101719170808792,-0.119872182607651,-0.099975921213627,0.020741624757648,-0.010985163040459,-0.072510175406933,0.077935904264450,-0.186807632446289) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.175291985273361,-0.052242472767830,-0.046833414584398,-0.041350409388542,0.002566558076069,-0.147145271301270,-0.078962929546833,0.167129889130592,0.014789845794439,-0.058787792921066,0.051657214760780,-0.020742537453771,-0.067623279988766,0.011343169026077,-0.006879716180265,0.111082121729851) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.042521826922894,-0.018182568252087,0.036381591111422,-0.155236348509789,0.029502781108022,-0.041337542235851,-0.032992802560329,-0.033301912248135,0.012351629324257,-0.005784330423921,0.003650993807241,-0.019616289064288,0.007510662544519,-0.030339943245053,-0.122517690062523,-0.029294464737177) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.030428133904934,0.085719883441925,0.099813528358936,0.012110892683268,0.096760280430317,0.074969388544559,0.101544000208378,-0.084788128733635,-0.029443804174662,-0.049723334610462,0.023865299299359,0.004140777979046,-0.197680413722992,0.076531231403351,-0.135896667838097,-0.120413325726986) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.223803699016571,-0.079427443444729,-0.067651458084583,0.027107033878565,-0.060433518141508,-0.199369177222252,-0.032242838293314,0.055097337812185,0.023290712386370,-0.027529466897249,0.023194152861834,-0.120788119733334,-0.031783312559128,-0.026233017444611,-0.008553903549910,-0.075311630964279) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.052430469542742,0.001520597375929,0.107971593737602,-0.191739767789841,-0.057661179453135,0.011183897033334,-0.029684532433748,-0.045333798974752,0.125013381242752,0.048342768102884,0.022843465209007,0.015396738424897,0.160164162516594,-0.011804891750216,0.148600175976753,0.057668037712574) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.224164843559265,-0.117649249732494,-0.078729093074799,-0.181409686803818,-0.158695727586746,0.099326223134995,-0.613057851791382,0.058818537741899,-0.360904842615128,-0.136632233858109,-0.160523399710655,0.095402084290981,-0.154026329517365,-0.111541822552681,0.395058274269104,-0.275510847568512) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.092220976948738,0.035778697580099,-0.048525910824537,0.175873503088951,0.179325774312019,0.145313888788223,0.121007829904556,-0.064367763698101,0.132586494088173,-0.002916498342529,-0.016864072531462,0.024229697883129,0.172714412212372,0.085287436842918,-0.005501081701368,-0.032138444483280) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.102054670453072,-0.009220628067851,0.039832275360823,-0.115961894392967,-0.099579609930515,-0.063854143023491,0.082974925637245,-0.066736914217472,-0.197724729776382,-0.002375077921897,0.012633535079658,-0.101120933890343,-0.028546797111630,0.033827971667051,-0.133360221982002,-0.124019712209702) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.058822076767683,0.114395737648010,0.001851462177001,0.061924610286951,0.101982109248638,0.058938115835190,0.034756839275360,0.012609917670488,0.226987838745117,0.100213333964348,-0.018847377970815,0.008074265904725,0.018347378820181,-0.079783439636230,-0.250594079494476,0.054845172911882) * MODEL5_texOff(vec2(1,0));
res += mat4(0.019655410200357,0.001590184750967,-0.065934523940086,0.043151527643204,0.022137572988868,-0.020626612007618,0.107047177851200,-0.111928001046181,0.045741364359856,0.033138681203127,-0.016616079956293,0.200160130858421,-0.051720447838306,0.005971996579319,-0.010745436884463,-0.006226564291865) * MODEL5_texOff(vec2(1,1));
res += mat4(0.161612600088120,0.010085805319250,-0.015137451700866,0.116343833506107,-0.009868500754237,-0.005131700076163,-0.058290727436543,0.079644858837128,-0.079743720591068,-0.032574433833361,-0.012020040303469,-0.036607522517443,0.021169604733586,0.090603664517403,0.023543907329440,-0.093835130333900) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.197497412562370,0.050159122794867,-0.012944532558322,-0.114683382213116,-0.089406110346317,-0.126240700483322,-0.089111424982548,-0.013311746530235,0.003653687192127,0.132149487733841,0.111061073839664,0.098891422152519,0.202636659145355,-0.242850661277771,-0.154912948608398,-0.040451638400555) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.096398085355759,0.013229660689831,-0.001933541730978,0.001500021782704,0.032324574887753,0.073687754571438,0.015382541343570,-0.034728292375803,0.019670780748129,0.015904713422060,0.002403540536761,0.095453388988972,0.129722252488136,0.043313201516867,-0.011847157962620,-0.101125448942184) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.050895579159260,-0.016819410026073,-0.003072588006034,-0.078953534364700,-0.021207707002759,-0.058887839317322,-0.011378471739590,-0.260437697172165,-0.114188820123672,0.101011916995049,0.072124853730202,-0.223126664757729,0.046806015074253,-0.150913849473000,-0.083882227540016,0.001269790227525) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.035531066358089,-0.026261916384101,-0.000654926407151,0.239720940589905,0.297650784254074,0.289658784866333,0.135431632399559,0.144270151853561,-0.139024823904037,-0.243399605154991,-0.025751303881407,0.165491789579391,0.022079616785049,0.317576915025711,0.132734641432762,-0.217168524861336) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.115681104362011,0.008075433783233,-0.001175360055640,-0.115051172673702,-0.176288262009621,-0.096915125846863,-0.042577609419823,0.044619601219893,-0.125260934233665,0.128720864653587,0.048053327947855,0.117009580135345,0.298140943050385,-0.058219090104103,-0.088819310069084,0.079315669834614) * MODEL6_texOff(vec2(0,1));
res += mat4(0.001422726549208,0.034057781100273,-0.012825307436287,0.082244060933590,-0.028613777831197,-0.074730865657330,0.016690226271749,0.108005270361900,-0.002642451087013,0.035174179822206,0.014476433396339,0.117018178105354,-0.004028581082821,0.005165255628526,-0.060564476996660,-0.091707117855549) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.088054955005646,-0.028986971825361,-0.070294976234436,-0.307390213012695,0.023422185331583,-0.131203770637512,0.136747375130653,-0.029151605442166,0.036842960864305,0.042905792593956,-0.014779892750084,0.123261786997318,0.062300510704517,-0.011992837302387,0.128983318805695,-0.007786997593939) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.129230275750160,0.054204575717449,-0.021060664206743,0.171214386820793,0.032299570739269,-0.028176611289382,-0.011528687551618,-0.003043711651117,-0.045791160315275,0.001804447150789,0.026888921856880,-0.159009888768196,-0.000307896087179,-0.049289055168629,-0.003770162118599,0.001624632743187) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.035900440067053,0.925986051559448,0.991953670978546,0.020486537367105) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.137954071164131,-0.162048235535622,-0.230185300111771,-0.370176136493683);
res += mat4(0.070010878145695,-0.047069679945707,-0.167829066514969,0.018783906474710,0.024404698982835,-0.071199677884579,0.045776303857565,0.154359683394432,0.164664134383202,-0.017041737213731,-0.018838813528419,0.052840966731310,0.095062531530857,0.016386358067393,-0.034480560570955,0.039498914033175) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.023214830085635,-0.089306391775608,0.033294633030891,-0.024524563923478,0.214169293642044,0.318156152963638,0.098654650151730,-0.354270309209824,0.021716944873333,0.311938613653183,0.003630998544395,-0.023889200761914,0.018647192046046,-0.059367548674345,0.111593171954155,0.023463832214475) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.016218867152929,-0.056648712605238,0.027723563835025,-0.032492566853762,-0.058052603155375,-0.151587128639221,-0.077010422945023,-0.208568230271339,-0.042436178773642,0.111611641943455,0.054888654500246,-0.026260964572430,0.010906447656453,-0.055804062634706,-0.005966702476144,0.027790365740657) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.325711637735367,0.018916547298431,-0.038259949535131,-0.023047110065818,0.067436382174492,0.007413988001645,0.117469847202301,0.024019069969654,0.024423873052001,0.160335168242455,-0.015108857303858,0.029461966827512,-0.043656986206770,-0.132124006748199,-0.011174056679010,0.008063134737313) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.175826132297516,0.116452135145664,0.390358209609985,-0.180270582437515,-0.309720009565353,-0.099650718271732,0.031120659783483,-0.128256008028984,-0.161732420325279,-0.266128689050674,0.126342296600342,-0.218839481472969,-0.227306708693504,-0.201457217335701,0.166638597846031,-0.103278979659081) * MODEL1_texOff(vec2(0,0));
res += mat4(0.046754125505686,0.055372744798660,-0.087015800178051,0.052628610283136,0.095265440642834,0.220488145947456,-0.047518536448479,-0.210633203387260,0.064767874777317,-0.067135810852051,-0.042062722146511,-0.129937916994095,0.066945426166058,-0.164329558610916,-0.566713154315948,-0.202320307493210) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.043698765337467,-0.040184374898672,0.028124012053013,0.032896045595407,0.043817862868309,0.013345663435757,0.036358702927828,0.101156406104565,0.066876344382763,0.061384130269289,-0.000431958556874,-0.022182250395417,-0.021174462512136,-0.014768168330193,-0.034576669335365,0.021283017471433) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.261837601661682,0.050403263419867,0.008064802736044,-0.038059245795012,0.004774942994118,0.009322773665190,-0.023091640323400,0.099264919757843,-0.013038309291005,-0.046054642647505,-0.030358364805579,0.030273882672191,-0.127544462680817,-0.068594723939896,0.182347655296326,-0.019298756495118) * MODEL1_texOff(vec2(1,0));
res += mat4(0.132610633969307,-0.067563079297543,-0.029294602572918,-0.092086277902126,0.020757019519806,0.002055339515209,0.138483077287674,0.175959169864655,0.010192314162850,0.019460409879684,-0.035359825938940,0.009814865887165,-0.183293715119362,-0.129064843058586,-0.013773065060377,0.090829133987427) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.095528513193130,-0.024094412103295,-0.124900586903095,0.185717925429344,-0.111423112452030,0.073432788252831,0.081664048135281,-0.014503082260489,0.150016963481903,-0.006358689162880,-0.046526569873095,-0.046712890267372,-0.032039001584053,0.065182805061340,-0.091559924185276,-0.090376891195774) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.005448855459690,-0.181081101298332,0.112820670008659,0.429088652133942,0.025958498939872,0.035773068666458,0.130464822053909,0.016294078901410,-0.158735111355782,-0.009940621443093,0.035204704850912,-0.057935852557421,0.007217673584819,0.109963387250900,-0.016818562522531,0.088046982884407) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.140410408377647,0.018882412463427,-0.102940842509270,0.164983958005905,-0.063658006489277,-0.003525116015226,0.062146544456482,0.050726078450680,0.102579757571220,-0.138031139969826,-0.307462394237518,0.019754709675908,0.106071166694164,-0.058176904916763,-0.149163872003555,0.145503714680672) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.135390132665634,0.018366536125541,0.075059063732624,-0.131568089127541,-0.047493126243353,-0.125926628708839,-0.163852512836456,-0.043046664446592,-0.233640179038048,-0.112809412181377,0.156670689582825,0.112989418208599,-0.094321459531784,0.071261487901211,-0.015247272327542,0.021418783813715) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.090374156832695,-0.115675449371338,-0.069348812103271,-0.206077545881271,-0.052025500684977,0.073218278586864,-0.078377507627010,-0.005024514161050,0.076170980930328,0.069581896066666,-0.175833448767662,0.189337730407715,0.305513739585876,0.047244686633348,-0.083938941359520,-0.017432915046811) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.056279361248016,-0.084090277552605,0.099353156983852,-0.068687193095684,-0.001397629850544,-0.128864586353302,0.200586602091789,0.011964535340667,0.036576807498932,-0.090548247098923,-0.175319924950600,-0.079969428479671,0.101867944002151,0.003102035494521,-0.257071524858475,-0.130451813340187) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.086742363870144,-0.154890969395638,0.091512426733971,-0.032846771180630,-0.144576966762543,-0.000726656173356,-0.050884328782558,0.017746051773429,0.202020719647408,0.091063849627972,0.032436199486256,-0.029651669785380,0.059895336627960,0.074246875941753,-0.063427627086639,-0.017241824418306) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.124617703258991,-0.045946385711432,-0.123998761177063,-0.181294888257980,-0.201869145035744,-0.151910185813904,0.184646978974342,0.113901287317276,-0.070480674505234,-0.147876903414726,-0.054252333939075,-0.034798618406057,-0.067215763032436,-0.025924140587449,-0.137326121330261,0.059804450720549) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.002805608557537,-0.054152570664883,0.153906166553497,0.044472981244326,-0.040233705192804,0.090450033545494,0.087388686835766,0.037067022174597,-0.025208842009306,-0.103900924324989,-0.154629424214363,0.084683157503605,0.030858226120472,-0.026319295167923,0.016018331050873,0.166577547788620) * MODEL2_texOff(vec2(1,1));
res += mat4(0.001786586130038,0.038449797779322,0.040873877704144,-0.048845890909433,0.024723742157221,-0.025140475481749,-0.089202217757702,0.073566526174545,0.135152816772461,-0.053414702415466,-0.127857282757759,0.011324645951390,0.010072684846818,-0.091165192425251,0.122152350842953,0.103925943374634) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.143029734492302,-0.042345549911261,-0.001308273291215,0.019240925088525,0.072285376489162,0.032336544245481,-0.112393893301487,0.279897987842560,-0.074334494769573,0.100790925323963,0.120782658457756,0.199694067239761,0.148442611098289,0.083275787532330,-0.072769805788994,0.089800037443638) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.020738650113344,-0.011184679344296,0.180879890918732,0.040774680674076,-0.068313434720039,-0.041651383042336,0.071327716112137,0.327452540397644,-0.065432183444500,0.090020336210728,0.047006599605083,0.113202482461929,-0.191673159599304,0.098438389599323,-0.044870533049107,-0.032378137111664) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.154525950551033,-0.027720933780074,-0.086212649941444,-0.057919073849916,-0.110142916440964,0.038380645215511,-0.012317127548158,-0.093442104756832,-0.109774149954319,0.090083666145802,0.010530147701502,0.089691840112209,-0.014042760245502,0.115862324833870,0.140371784567833,-0.130198180675507) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.241795077919960,0.126279577612877,0.024518620222807,-0.022568516433239,0.259777843952179,0.132737994194031,0.062536656856537,-0.207184553146362,0.236727923154831,0.021407550200820,0.020160131156445,0.066637836396694,0.035186488181353,0.039995498955250,-0.109895043075085,-0.068533368408680) * MODEL3_texOff(vec2(0,0));
res += mat4(0.048043753951788,-0.097598209977150,-0.103807248175144,-0.057868026196957,-0.089953467249870,-0.116699986159801,-0.204886272549629,-0.231302618980408,0.001565858488902,-0.021818829700351,0.166700616478920,0.071468994021416,-0.004861934576184,-0.004097146447748,-0.066909097135067,0.092096880078316) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.047048140317202,-0.056631568819284,0.014609097503126,0.022142911329865,-0.027299702167511,-0.002771219471470,0.049897957593203,0.037916705012321,0.036411069333553,-0.024749809876084,-0.016634797677398,0.008427071385086,-0.127639397978783,-0.000279873347608,0.129357308149338,0.083350293338299) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.065568484365940,-0.113286644220352,-0.019152652472258,0.025901954621077,-0.136359706521034,-0.104291148483753,0.008284538052976,0.004979981109500,-0.132159516215324,0.005804361309856,0.037074964493513,0.004158027470112,0.043728567659855,0.091432303190231,-0.112149178981781,0.028035745024681) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.201231986284256,-0.018007289618254,0.086697772145271,0.032025441527367,-0.026357199996710,0.070687256753445,0.022912897169590,-0.028740441426635,0.124217249453068,0.010380318388343,0.016052905470133,-0.021093234419823,0.053883630782366,0.089624799787998,-0.027113668620586,0.030974542722106) * MODEL3_texOff(vec2(1,1));
res += mat4(0.005577145610005,0.183222904801369,0.228559270501137,0.070843018591404,0.051969245076180,-0.020715577527881,-0.000122731071315,0.080739222466946,-0.053935326635838,-0.053879890590906,0.041038714349270,0.011118043214083,-0.040952410548925,-0.123563051223755,0.005663837306201,0.004311795346439) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.039479345083237,-0.059015199542046,-0.064952485263348,0.067631460726261,0.015314080752432,-0.015537663362920,-0.008141413331032,0.038307126611471,0.054738491773605,-0.172074094414711,-0.109409525990486,0.133527830243111,-0.082134082913399,0.014456318691373,-0.118502758443356,-0.098544284701347) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.123234994709492,0.144793152809143,-0.095815442502499,-0.080254681408405,-0.043009147047997,0.126923859119415,0.092933468520641,0.036059327423573,0.070000022649765,0.007262554951012,-0.080650225281715,0.061657529324293,-0.054671846330166,0.091561891138554,-0.030084662139416,-0.014807300642133) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.093204908072948,0.019222537055612,0.381538391113281,-0.028888057917356,-0.094241291284561,0.159224063158035,0.094243481755257,0.062026906758547,-0.062101695686579,-0.020804073661566,0.063201718032360,0.002111409092322,-0.184006839990616,-0.018192430958152,0.019855618476868,0.067595534026623) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.083647742867470,0.099022999405861,-0.460571497678757,-0.043931894004345,-0.121035546064377,-0.306417107582092,0.082705087959766,-0.016300158575177,0.173343002796173,-0.109022408723831,-0.259769529104233,-0.070420205593109,-0.020663326606154,0.150028347969055,-0.098419226706028,0.141333818435669) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.090238161385059,-0.180308997631073,-0.184643313288689,0.102797858417034,-0.043995354324579,0.019512573257089,0.243668675422668,0.034833233803511,0.048292364925146,0.113821022212505,-0.192400023341179,-0.024788901209831,-0.030453478917480,0.081577830016613,-0.224093750119209,-0.083767153322697) * MODEL4_texOff(vec2(0,1));
res += mat4(0.037228111177683,-0.032944761216640,0.232582047581673,0.109508655965328,0.021309262141585,-0.103926204144955,0.021708749234676,-0.000547040544916,0.115291662514210,0.063916392624378,0.006233331747353,-0.035326343029737,0.067938908934593,0.087699331343174,0.039510790258646,-0.111060179769993) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.210652172565460,-0.208377823233604,-0.141130179166794,0.079860292375088,0.031180012971163,0.131341725587845,-0.065013825893402,-0.017866337671876,-0.053998675197363,0.245989933609962,0.115525953471661,-0.135266184806824,-0.026146847754717,0.024657692760229,0.019689282402396,-0.052764147520065) * MODEL4_texOff(vec2(1,0));
res += mat4(0.016396433115005,-0.004964551888406,-0.114679299294949,-0.054498024284840,-0.102273173630238,-0.015717649832368,0.141952782869339,0.037381999194622,-0.023380558937788,-0.045271348208189,0.006097149569541,-0.042919784784317,-0.085727706551552,-0.059188742190599,-0.159867420792580,0.009684072807431) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.053711082786322,0.013588218018413,0.074528098106384,-0.017333691939712,0.018790658563375,-0.077031083405018,-0.028802065178752,-0.022422477602959,-0.020301748067141,-0.044746637344360,-0.025033511221409,-0.098422616720200,0.073315121233463,0.008194327354431,-0.011754307895899,0.088164091110229) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.006972219794989,-0.211057424545288,-0.159635752439499,-0.099117957055569,-0.052282139658928,0.034147549420595,0.011490678414702,-0.021574996411800,-0.098833791911602,0.020466692745686,0.040903422981501,-0.455520391464233,-0.042534083127975,-0.050339993089437,0.059993401169777,-0.051871020346880) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.065120272338390,0.024366235360503,-0.007376305758953,-0.150244817137718,-0.052038572728634,-0.114781081676483,0.026394164189696,-0.087848305702209,0.016696801409125,-0.136792793869972,0.068297721445560,-0.434458613395691,-0.023076338693500,-0.074950665235519,-0.054366201162338,-0.048133246600628) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.126649335026741,0.020741039887071,-0.002269926480949,0.058433432132006,-0.082977995276451,0.015415811911225,0.040343314409256,-0.036030404269695,0.185846775770187,-0.027988180518150,0.012088671326637,0.128366276621819,-0.073547936975956,0.160676896572113,-0.022987175732851,0.075527086853981) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.314812034368515,-0.035168204456568,0.067449688911438,-0.252385258674622,-0.059325691312551,-0.032684199512005,0.152745500206947,0.018224375322461,-0.169109106063843,0.024237897247076,0.184157431125641,-0.193585336208344,0.146470606327057,-0.243940278887749,0.007204659748822,0.108756780624390) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.030630834400654,-0.123104959726334,-0.038682285696268,-0.222970247268677,-0.015935255214572,0.002302116481587,-0.230603188276291,-0.018240382894874,-0.049629148095846,-0.008694182150066,0.027654852718115,-0.062723860144615,0.011699600145221,-0.033798947930336,0.035785865038633,0.070836991071701) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.006313602440059,-0.009906585328281,0.033342584967613,0.030415078625083,0.089850470423698,0.044260445982218,0.024230407550931,-0.072680197656155,0.053408648818731,0.071646906435490,0.132685065269470,0.000697799026966,-0.071189209818840,-0.024902321398258,0.048535831272602,0.067367181181908) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.180835425853729,-0.160865247249603,0.036627117544413,0.114543616771698,0.060004908591509,0.051621787250042,0.070244424045086,0.017673552036285,-0.155332177877426,-0.213686332106590,0.093453668057919,0.247417211532593,-0.029832201078534,0.031255070120096,0.057058483362198,-0.002657663775608) * MODEL5_texOff(vec2(1,0));
res += mat4(0.086758472025394,0.070044182240963,-0.010786137543619,0.051506850868464,-0.021094670519233,-0.023128570988774,-0.038840416818857,-0.038195557892323,0.166654706001282,0.224830865859985,0.013914798386395,0.161056444048882,0.052364449948072,-0.042173616588116,0.091178916394711,-0.046224143356085) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.009130741469562,-0.019399600103498,-0.007459211628884,0.045072622597218,0.039111290127039,0.032473232597113,0.009941378608346,-0.049146384000778,-0.110480234026909,0.110138177871704,-0.040891587734222,-0.071758449077606,0.151434257626534,-0.101747244596481,-0.055779166519642,-0.031433161348104) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.034958269447088,-0.120024234056473,0.037236511707306,-0.355135977268219,-0.074613362550735,0.096291996538639,0.045311998575926,0.035231806337833,-0.013212132267654,-0.081422112882137,-0.115276850759983,-0.184353038668633,-0.098118193447590,0.010904885828495,0.090774640440941,0.009325006045401) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.075589172542095,-0.006567390635610,-0.211311236023903,-0.008649433031678,0.046315662562847,0.034095488488674,0.028987344354391,-0.116410471498966,-0.075985334813595,0.040941838175058,0.018872877582908,-0.046420376747847,-0.061126239597797,-0.111792825162411,-0.102062068879604,-0.149433329701424) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.139442324638367,0.055062647908926,0.111917883157730,-0.029258389025927,-0.148011639714241,-0.085075467824936,0.037189915776253,0.084831565618515,0.057361453771591,0.040226474404335,0.037648778408766,-0.030012575909495,0.161310553550720,-0.109161548316479,-0.087920993566513,-0.121591567993164) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.126486003398895,-0.016688086092472,-0.045589234679937,-0.282097995281219,-0.020074822008610,-0.181373089551926,-0.041228864341974,0.611432075500488,0.003780595958233,0.227668344974518,-0.016852490603924,-0.089399963617325,0.131314247846603,-0.024351142346859,0.098414659500122,-0.222705081105232) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.162231817841530,-0.181505039334297,0.036528091877699,-0.301745682954788,-0.020092820748687,0.047018185257912,0.083046577870846,0.238690838217735,0.038448821753263,0.046726748347282,0.035696711391211,-0.123011581599712,-0.038744363933802,-0.040309600532055,0.272808253765106,0.067302204668522) * MODEL6_texOff(vec2(0,1));
res += mat4(0.095579363405704,0.043730318546295,0.118029102683067,0.079069688916206,0.003617048496380,0.078153505921364,-0.001726792077534,0.000317354191793,-0.049248531460762,0.013760564848781,-0.093350037932396,0.000281337561319,-0.037828069180250,-0.089719451963902,-0.058347690850496,0.018718978390098) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.203356832265854,-0.197948098182678,0.001949440687895,0.085508257150650,0.017305193468928,0.009348866529763,-0.153771653771400,0.142601400613785,0.000268897128990,0.071506947278976,-0.140690788626671,0.006611920427531,0.187619149684906,0.058640781790018,-0.026982042938471,-0.006843692623079) * MODEL6_texOff(vec2(1,0));
res += mat4(0.119474634528160,0.017276948317885,-0.037849579006433,0.111954532563686,-0.008925501257181,-0.038860633969307,-0.055289480835199,-0.021998476237059,-0.007873792201281,0.034906718879938,-0.018492545932531,0.012410706840456,0.148656427860260,-0.021354187279940,0.036559458822012,-0.030585873872042) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.027565460652113,0.028777092695236,-0.003993134479970,0.013819510117173) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.143485859036446,-0.409479200839996,0.105833202600479,-0.234735995531082);
res += mat4(-0.034562405198812,-0.059236533939838,0.089511804282665,-0.053501330316067,-0.059138782322407,0.142246440052986,0.000256859231740,0.078999526798725,0.098274596035480,0.072759553790092,-0.086473196744919,0.061037138104439,-0.004245968069881,-0.009429163299501,-0.007081223186105,0.011517104692757) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.075819604098797,-0.071299329400063,-0.015413981862366,0.153555616736412,0.081657335162163,-0.090186327695847,-0.062518186867237,-0.002218951936811,-0.041852463036776,0.339703977108002,-0.221444085240364,-0.033314734697342,0.178087666630745,0.033299278467894,-0.149139419198036,0.071284458041191) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.005869647487998,0.019494608044624,-0.059323124587536,0.077686041593552,-0.022439312189817,-0.019400967285037,0.019752738997340,0.046835664659739,-0.015350774861872,0.077247478067875,-0.017932688817382,0.119300648570061,-0.006148344371468,0.024242190644145,-0.036831997334957,0.012159389443696) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.289567083120346,-0.026912642642856,-0.004915716592222,0.041342280805111,0.051184967160225,0.147706001996994,-0.015394712798297,0.265822350978851,-0.127043023705482,-0.087377384305000,0.061639878898859,0.066395178437233,0.202270045876503,0.094073176383972,-0.043750800192356,0.060570526868105) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.043034840375185,0.044755689799786,0.070974737405777,0.245285183191299,0.066572710871696,0.475723206996918,-0.196131348609924,-0.095595829188824,0.111740373075008,-0.351293295621872,0.147136166691780,-0.208921834826469,0.037062168121338,-0.040705639868975,0.004449684638530,0.070526503026485) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.065406426787376,0.092822313308716,-0.015893679112196,-0.200620159506798,0.009713030420244,0.153324693441391,-0.017327288165689,0.037817951291800,0.008362210355699,-0.152809664607048,0.039972439408302,-0.029266353696585,-0.142263546586037,0.060843992978334,-0.025537604466081,-0.137016415596008) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.003415013197809,0.060141466557980,0.004915797617286,0.020751742646098,0.315214306116104,-0.200514853000641,0.073261752724648,-0.090195432305336,-0.134414747357368,0.002097697928548,-0.072625093162060,-0.035675808787346,0.008829696103930,0.060450542718172,-0.009863745421171,0.109050638973713) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.061658393591642,-0.014152868650854,0.017073009163141,0.039282884448767,-0.213465750217438,-0.225157633423805,0.077620618045330,0.249119982123375,0.062408123165369,0.110921345651150,-0.061211671680212,-0.133993506431580,0.156638577580452,0.158493027091026,-0.010970761999488,0.215535774827003) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.043302763253450,-0.067884042859077,0.042225617915392,-0.060009308159351,-0.045299574732780,-0.312083452939987,0.005582338664681,0.040639623999596,-0.014670097269118,0.006025683134794,-0.002938013523817,0.011383840814233,-0.027331195771694,0.148941099643707,-0.046130239963531,-0.140090838074684) * MODEL1_texOff(vec2(1,1));
res += mat4(0.020364407449961,0.206029593944550,0.068804182112217,0.164475619792938,0.111271850764751,0.079171851277351,-0.052225943654776,0.184317082166672,-0.039341185241938,-0.044839907437563,-0.072606340050697,0.073939532041550,-0.039457153528929,-0.016908239573240,-0.014254307374358,-0.124593034386635) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.133270904421806,0.151396498084068,0.037025757133961,-0.232567757368088,-0.099789470434189,0.022856142371893,-0.038916725665331,0.237955212593079,-0.109523609280586,-0.033502995967865,0.013165377080441,-0.139127403497696,0.054108116775751,0.129837334156036,-0.055707175284624,-0.177294075489044) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.033450592309237,0.123719982802868,-0.024930914863944,0.149179428815842,0.051404811441898,0.074792973697186,-0.012032750062644,-0.152095764875412,0.145305961370468,-0.038124673068523,0.020409492775798,-0.244989529252052,0.101580373942852,0.078638218343258,-0.069469578564167,0.109887704253197) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.056824985891581,-0.255106240510941,0.074723064899445,0.116619326174259,0.063793808221817,-0.119629465043545,0.104219064116478,0.255171984434128,-0.037955146282911,0.110382065176964,0.019110525026917,-0.031487829983234,0.089657887816429,0.114747360348701,0.042212549597025,0.069754905998707) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.070671312510967,-0.278153657913208,0.055530548095703,-0.148862108588219,-0.128445610404015,-0.020006982609630,0.006330254022032,0.323096543550491,-0.274077534675598,0.083597578108311,0.086037009954453,-0.208144783973694,-0.049453794956207,-0.007594908121973,0.063442938029766,-0.044490247964859) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.079490892589092,0.010836465284228,0.013708844780922,0.246283441781998,0.171018809080124,-0.000800442125183,-0.074459984898567,0.086194232106209,0.183972477912903,-0.043223161250353,0.027067277580500,-0.278725266456604,-0.146211370825768,-0.143122732639313,0.105751842260361,0.267426073551178) * MODEL2_texOff(vec2(0,1));
res += mat4(0.088034078478813,-0.030804781243205,-0.080291107296944,-0.149269789457321,0.132169917225838,0.003083970863372,-0.050782643258572,0.159556671977043,-0.183498293161392,-0.115805149078369,0.062073539942503,0.046718917787075,-0.037234511226416,-0.072479322552681,-0.088399685919285,-0.092725314199924) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.121730096638203,-0.037902709096670,0.000085445775767,0.245811790227890,-0.142821490764618,0.085539110004902,-0.062054492533207,0.160384446382523,-0.177844583988190,0.060618497431278,-0.027690725401044,0.015318605117500,-0.004968674387783,0.100570105016232,-0.116997413337231,-0.110705040395260) * MODEL2_texOff(vec2(1,0));
res += mat4(0.135019555687904,0.043530974537134,-0.102159343659878,-0.108441404998302,0.027921715751290,0.069665789604187,-0.005164749454707,-0.163720875978470,0.244590789079666,0.133445933461189,-0.050004195421934,-0.247414380311966,0.042409639805555,0.109713390469551,-0.062182120978832,0.083964720368385) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.135659128427505,0.021282417699695,-0.033857379108667,-0.167860671877861,-0.031691290438175,0.050343856215477,-0.006136060226709,0.035868547856808,0.055563487112522,0.068239502608776,0.034611985087395,0.018720146268606,-0.120895795524120,0.005737463012338,0.024490624666214,0.119794264435768) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.273317784070969,0.078179255127907,-0.099213562905788,0.168974667787552,-0.110625229775906,0.046471290290356,-0.132438287138939,-0.045355416834354,-0.114531159400940,0.224460840225220,-0.021394463256001,-0.003719059517607,-0.123084425926208,0.054777905344963,-0.112104825675488,-0.060121692717075) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.139060080051422,-0.090576298534870,0.039577368646860,-0.133046045899391,0.040658030658960,0.133881971240044,-0.074510797858238,-0.020234962925315,0.069979183375835,0.102728873491287,-0.010687559843063,0.021987689658999,0.184127271175385,-0.005647760350257,-0.078248307108879,-0.021076433360577) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.374381810426712,-0.015919050201774,0.077038764953613,-0.123803310096264,-0.085655629634857,-0.049609653651714,-0.092821545898914,-0.004825868178159,0.308445930480957,0.053296826779842,-0.031573988497257,0.263602763414383,-0.073633454740047,-0.116999715566635,-0.034806035459042,0.150657594203949) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.411406010389328,-0.066876463592052,0.090326808393002,0.122578896582127,0.109027586877346,-0.323765367269516,-0.122003525495529,-0.034309618175030,-0.183823421597481,-0.022298781201243,-0.024511339142919,-0.090311132371426,-0.104125894606113,-0.024608848616481,0.013916311785579,-0.319753259420395) * MODEL3_texOff(vec2(0,0));
res += mat4(0.323554128408432,-0.232848569750786,-0.029338080435991,-0.302872121334076,-0.034676734358072,-0.167902976274490,-0.075671091675758,-0.030488535761833,0.076442949473858,0.071726955473423,-0.111641749739647,-0.004107649903744,0.145605593919754,0.073100998997688,0.017123324796557,-0.100684635341167) * MODEL3_texOff(vec2(0,1));
res += mat4(0.019868219271302,0.019380528479815,0.007687057368457,-0.148561298847198,-0.001871111453511,0.007193725556135,-0.022094773128629,0.068826988339424,0.058593392372131,0.016093462705612,-0.061529412865639,0.118403419852257,-0.084657728672028,0.087763093411922,-0.075054205954075,0.156083643436432) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.131716534495354,0.035936467349529,-0.004803836345673,-0.004284181632102,0.036371584981680,0.066826581954956,-0.136027798056602,-0.030890319496393,-0.093273177742958,-0.043447449803352,-0.076825395226479,-0.077914409339428,0.009214441291988,0.080021254718304,-0.022666577249765,-0.074531197547913) * MODEL3_texOff(vec2(1,0));
res += mat4(0.131201788783073,0.031430140137672,0.014694297686219,-0.104965604841709,0.001443989109248,0.042847923934460,-0.040266182273626,0.041658267378807,0.029991758987308,-0.002709714695811,0.016782443970442,0.008460369892418,0.013212039135396,0.029649937525392,0.014775716699660,-0.050111446529627) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.312988847494125,0.147082164883614,-0.015529505908489,0.168755307793617,0.164903596043587,0.082463867962360,-0.010645898059011,0.051360119134188,-0.056152712553740,0.008014097809792,0.000125853825011,-0.120101362466812,0.049007516354322,0.037041548639536,0.012827159836888,-0.033527534455061) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.033204130828381,0.094755470752716,-0.015939917415380,0.076559223234653,0.084132291376591,-0.051718607544899,0.098293639719486,-0.036300759762526,0.027656801044941,0.120589897036552,-0.061241924762726,0.123842708766460,-0.068333677947521,0.114835776388645,-0.090597823262215,-0.107047587633133) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.052599448710680,-0.008796515874565,0.011707503348589,-0.008407169021666,-0.020322810858488,0.084553949534893,-0.034095615148544,0.059642434120178,0.010985703207552,0.067282058298588,-0.079694978892803,-0.062562465667725,-0.025753362104297,-0.051008295267820,-0.002737089525908,0.044692903757095) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.226723924279213,-0.015612463466823,0.021804610267282,0.051052875816822,-0.219093367457390,0.015144533477724,0.000615581579041,0.033690165728331,-0.189326778054237,-0.070108361542225,0.074885301291943,-0.136709526181221,0.168207317590714,0.112731046974659,-0.005815178621560,-0.035112421959639) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.004875063896179,-0.048866361379623,0.061925053596497,-0.138398855924606,0.008499995805323,-0.075514845550060,-0.045679043978453,-0.255512148141861,0.216846391558647,-0.271982491016388,0.098025061190128,0.207431986927986,0.161841407418251,0.411033332347870,-0.139828324317932,-0.096236288547516) * MODEL4_texOff(vec2(0,0));
res += mat4(0.090779669582844,0.121948480606079,0.017866723239422,0.002554131438956,-0.007271756418049,-0.080943398177624,0.168741285800934,0.401303619146347,-0.091809108853340,0.019962809979916,0.008449438959360,0.097594261169434,-0.089429289102554,0.028481910005212,0.062223009765148,0.065760709345341) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.188437983393669,0.098462976515293,-0.000472850078950,0.083575055003166,0.194859027862549,0.018068339675665,-0.017573084682226,0.072421655058861,-0.078276842832565,0.055247861891985,-0.020381480455399,0.000664763385430,-0.080003015697002,-0.095958523452282,0.076178938150406,-0.026196794584394) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.046091873198748,0.085435122251511,-0.049041446298361,0.050613466650248,0.015700619667768,-0.029430428519845,-0.008660182356834,-0.053260739892721,-0.010184320621192,-0.154426068067551,0.025656178593636,0.086985170841217,-0.131531998515129,-0.060930002480745,0.160032913088799,-0.095045395195484) * MODEL4_texOff(vec2(1,0));
res += mat4(0.064815178513527,-0.116803154349327,-0.030266813933849,-0.002671183086932,0.014164795167744,0.011610915884376,-0.101892836391926,0.214707702398300,-0.027419101446867,0.029015742242336,0.035297531634569,0.064390011131763,0.041531726717949,0.005603325553238,-0.012901504524052,0.000402678793762) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.159661248326302,0.046167530119419,0.023174922913313,-0.092199191451073,-0.232705920934677,-0.013041240163147,-0.021725140511990,0.104492664337158,0.098981559276581,-0.126857981085777,0.052341129630804,0.105315320193768,-0.018761100247502,0.064559049904346,-0.105332650244236,0.041497569531202) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.137847378849983,-0.064420767128468,0.072647020220757,-0.028209419921041,0.037045471370220,0.014125932939351,0.058309204876423,-0.075209759175777,0.008348506875336,-0.368337124586105,0.173589438199997,0.103757373988628,-0.011257130652666,0.043860010802746,-0.135525479912758,-0.140013545751572) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.075323857367039,0.100820042192936,-0.005940345581621,-0.194496646523476,-0.023737901821733,-0.079171851277351,-0.026242790743709,-0.018043879419565,-0.000170594517840,-0.318848818540573,0.064501434564590,0.042648177593946,-0.042523648589849,0.039702154695988,-0.012033459730446,-0.045520856976509) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.198646023869514,0.054525472223759,-0.010639379732311,0.161236524581909,-0.278968542814255,0.047878809273243,-0.114312939345837,0.091651447117329,-0.052164427936077,-0.021040812134743,-0.033337671309710,0.215616449713707,0.160364687442780,-0.138832539319992,0.276536226272583,0.223163440823555) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.148608058691025,-0.181164905428886,0.077737785875797,-0.201049655675888,0.260148435831070,0.184756785631180,-0.253692805767059,-0.220659837126732,0.094494715332985,0.412571251392365,-0.085387572646141,0.036279149353504,-0.049642257392406,-0.305570602416992,0.252625644207001,-0.209092244505882) * MODEL5_texOff(vec2(0,0));
res += mat4(0.154813721776009,-0.222935020923615,-0.004704297520220,-0.482295900583267,-0.056355662643909,0.147324547171593,-0.039215099066496,0.068464830517769,0.128180995583534,-0.002835534047335,-0.005704544484615,-0.000371096306480,-0.068773560225964,-0.089926674962044,0.031906347721815,0.117773801088333) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.034634113311768,0.033088270574808,-0.002334334887564,0.176052778959274,-0.127385854721069,-0.064304836094379,0.043107293546200,-0.012144934386015,-0.034322127699852,0.035099424421787,-0.009165239520371,0.212386220693588,-0.034406319260597,0.036679442971945,-0.157792165875435,0.087239071726799) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.018114278092980,0.129877269268036,-0.016480512917042,-0.197965011000633,0.031551491469145,0.190620690584183,0.047790113836527,0.089303098618984,0.121027655899525,0.352477282285690,-0.080693230032921,-0.021350171416998,-0.040499091148376,-0.032354250550270,-0.164623215794563,0.094393268227577) * MODEL5_texOff(vec2(1,0));
res += mat4(0.062106307595968,0.081670574843884,-0.023697536438704,-0.074123136699200,0.002453202381730,-0.131638959050179,0.097006671130657,0.006454159040004,0.029148546978831,0.135077387094498,0.000628825742751,0.010375901125371,0.014430203475058,-0.047194737941027,-0.051663439720869,-0.051891576498747) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.186074495315552,-0.020451538264751,-0.034697990864515,0.150895565748215,0.005159531254321,0.000853128207382,-0.053230557590723,0.032317791134119,0.063608646392822,-0.035584863275290,0.024736762046814,-0.015495410189033,0.031228475272655,-0.062872692942619,-0.012137743644416,-0.119199164211750) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.081771008670330,-0.178028151392937,-0.053127117455006,-0.244075238704681,0.047854587435722,0.221072807908058,-0.062048181891441,-0.059758849442005,-0.156188160181046,-0.234368041157722,0.077203981578350,-0.038044016808271,-0.171627253293991,0.082358703017235,-0.100202880799770,0.190293312072754) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.151430055499077,-0.005106449127197,-0.019137833267450,0.110495932400227,-0.014185318723321,-0.056929424405098,0.018327061086893,0.044930666685104,0.060463737696409,-0.017028158530593,-0.033742994070053,-0.082011282444000,-0.021558336913586,0.024637663736939,0.086941570043564,0.046874072402716) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.085763923823833,-0.020236002281308,0.105674378573895,0.192381381988525,-0.144059583544731,0.001396298990585,0.011654593050480,0.029806023463607,0.101846188306808,-0.044703111052513,0.073034569621086,-0.027865154668689,0.110105581581593,-0.084409795701504,0.075763188302517,-0.072630941867828) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.000086004860350,0.026406256482005,0.072275899350643,-0.291055053472519,0.001819135039113,0.152941584587097,-0.039085760712624,-0.001702298410237,-0.216461569070816,-0.178491413593292,0.084420248866081,0.172318309545517,-0.321359187364578,0.284645259380341,-0.072629168629646,0.084333457052708) * MODEL6_texOff(vec2(0,0));
res += mat4(0.063928857445717,-0.046481087803841,0.029431015253067,0.009182561188936,0.044236496090889,0.046472042798996,-0.061276677995920,-0.003115717554465,0.041771512478590,-0.092359788715839,-0.002693722257391,0.032222308218479,0.082396760582924,0.215844556689262,0.031280186027288,-0.144733890891075) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.010614688508213,0.055560052394867,-0.044346109032631,-0.034176710993052,-0.133070021867752,0.085192941129208,-0.166830554604530,-0.066770024597645,0.056749083101749,0.037733592092991,-0.025533076375723,-0.097682535648346,0.073346070945263,-0.025997675955296,0.001276073046029,0.022574666887522) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.028287986293435,-0.089640736579895,-0.072275146842003,0.108881212770939,0.049588155001402,0.018296604976058,-0.118248760700226,-0.095958143472672,-0.074251413345337,0.087549395859241,-0.073344804346561,0.103414051234722,0.032337523996830,-0.025278158485889,0.153546139597893,-0.079857461154461) * MODEL6_texOff(vec2(1,0));
res += mat4(0.061962295323610,-0.146018221974373,-0.019978018477559,-0.132813811302185,0.022860607132316,0.022992594167590,-0.019927084445953,0.014142339117825,-0.051208496093750,0.018566317856312,0.049937922507524,-0.103577807545662,0.001562024117447,-0.116461053490639,0.052584994584322,-0.062418557703495) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.088240616023540,0.006011844612658,-0.572197258472443,-0.032547239214182) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] sup-pixel convolution 1

vec4 hook()
{
vec4 res = vec4(0.001184384920634,0.000882823893335,0.000514303101227,0.000569408352021);
res += mat4(0.019807448610663,0.007285510655493,-0.007127490360290,-0.004476462025195,-0.004172480199486,-0.001182971638627,-0.001341256196611,-0.001448493450880,-0.005148537922651,-0.003544813254848,-0.003931130748242,-0.002303748158738,0.016904842108488,0.002561437198892,-0.002794901141897,-0.005931631661952) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.024112617596984,-0.031843762844801,-0.049692548811436,-0.010933723300695,-0.006888358853757,-0.007628453895450,-0.005569342989475,-0.004485917743295,-0.007200833875686,0.016093041747808,0.013790688477457,-0.004104474093765,-0.021389165893197,-0.011450143530965,0.019939605146646,0.034415192902088) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.002224358730018,-0.002706695580855,0.012453976087272,0.037550192326307,-0.001801356673241,-0.003069047816098,-0.004233070649207,-0.005259584169835,0.002508983248845,0.006009237840772,0.002988958964124,-0.009718050248921,-0.000684051308781,0.002684948733076,-0.001630259444937,-0.012952964752913) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.020404828712344,-0.004081166349351,-0.001883013988845,-0.003437885781750,0.004425028339028,0.001741996849887,0.002939535072073,0.004766224417835,0.009561530314386,0.002422501333058,-0.005351437255740,-0.003460887819529,-0.024966411292553,-0.003958588000387,0.005762758199126,0.004330306779593) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.023196710273623,0.038037784397602,0.009724266827106,-0.028944931924343,0.037713717669249,0.038131371140480,0.028398063033819,0.014556203037500,-0.020796461030841,-0.049492646008730,-0.007389307487756,0.016169469803572,0.041631944477558,0.030966211110353,-0.009378868155181,-0.034120816737413) * MODEL7_texOff(vec2(0,0));
res += mat4(0.003784920088947,-0.004022832494229,-0.014982816763222,-0.006317480932921,-0.000920356425922,0.001911587314680,0.011298176832497,0.024073762819171,-0.009196571074426,-0.008345987647772,0.036878965795040,0.049984045326710,-0.005946929566562,-0.005410803481936,-0.004470573738217,0.015549565665424) * MODEL7_texOff(vec2(0,1));
res += mat4(0.001761142164469,0.008074594661593,0.008336472325027,0.004238044377416,-0.012406392022967,-0.004929895047098,-0.000219167020987,0.001131358207203,0.002944856649265,0.002862752648070,-0.002901879139245,-0.002977079246193,-0.002535094041377,0.001478940015659,0.005468811374158,0.005868738982826) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.001650266116485,-0.001706975628622,-0.002927294932306,-0.002611072268337,-0.016833640635014,-0.018886703997850,-0.019530177116394,-0.019479250535369,0.001587761566043,-0.000856827711686,0.000284868612653,0.000161395291798,-0.003141381777823,-0.004315156955272,-0.004614145029336,-0.003674878505990) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.003399504348636,-0.005078397691250,-0.004393497947603,-0.002383729442954,-0.002003061119467,-0.005212884396315,-0.007792294491082,-0.010026625357568,-0.000864825095050,-0.006251430138946,-0.006793338805437,0.003805143060163,0.002221722854301,0.000059331869124,-0.004783158656210,-0.005741330794990) * MODEL7_texOff(vec2(1,1));
res += mat4(0.006960447411984,0.005451985169202,0.002836016006768,-0.000417120609200,-0.012121245265007,-0.000777704000939,0.007650962099433,0.006897715851665,0.000677697418723,0.002889761701226,0.002885571448132,0.000973831978627,-0.021855441853404,-0.004665141925216,0.004565641283989,0.002260750858113) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.001970205456018,-0.001374869141728,0.004079323261976,0.009702558629215,0.010228136554360,-0.000723313598428,-0.011068190447986,-0.016110755503178,-0.006803134921938,0.004062329418957,0.007503848057240,0.003276223782450,-0.029210319742560,0.005603107158095,0.038806505501270,0.000666473293677) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.002847358118743,0.003049410879612,0.000928450899664,-0.000107823732833,-0.002766354708001,-0.002606524387375,0.005364428739995,0.012836696580052,-0.006899039261043,-0.004431135021150,0.002464874181896,-0.003970079123974,0.004127237945795,0.007247021421790,0.006547341588885,-0.008119652047753) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.007435338571668,-0.003605507779866,-0.005958606489003,-0.005945862270892,-0.019813435152173,-0.001810982823372,0.012840134091675,0.010872649028897,-0.017371632158756,-0.000518643762916,0.006567553151399,0.008289225399494,-0.002349988557398,-0.006817205809057,-0.006137750111520,-0.005174969322979) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.050627101212740,-0.051681082695723,-0.038506671786308,-0.020478518679738,0.013236265629530,0.001768721500412,-0.006808768026531,-0.015723388642073,0.060849037021399,0.075671397149563,-0.020319608971477,-0.052271343767643,-0.028177538886666,-0.015409128740430,0.027359750121832,0.022376878187060) * MODEL8_texOff(vec2(0,0));
res += mat4(0.001637509209104,-0.001617075176910,-0.012808152474463,-0.030319219455123,-0.006620594765991,-0.005715857259929,0.006673773285002,0.019518274813890,0.003529430832714,0.002000481123105,-0.035376515239477,-0.035522025078535,0.005590426269919,0.003818624420092,0.003160413587466,-0.002524686977267) * MODEL8_texOff(vec2(0,1));
res += mat4(0.004456707742065,0.002692757407203,0.001128274830990,-0.000371857808204,0.000888119102456,-0.001162807457149,-0.001621317584068,-0.002123725833371,-0.006239134818316,-0.008438855409622,0.001738402759656,0.003857551608235,0.001104296185076,-0.001337990746833,-0.002118927659467,-0.002324207220227) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.006591046694666,0.005642713978887,0.006879137363285,0.009202707558870,-0.000935102812946,-0.002751286607236,-0.000353484821972,0.000903618405573,0.011720618233085,0.004950555507094,-0.001735565718263,0.001514407340437,-0.002651273272932,-0.000974441878498,-0.002703294623643,-0.000178011774551) * MODEL8_texOff(vec2(1,0));
res += mat4(0.004326547961682,0.007996730506420,0.009906128048897,0.008837850764394,0.001042394549586,0.002073048148304,0.002220687922090,0.001943970913999,-0.000517116452102,-0.003378881607205,-0.003521183272824,0.003685563569888,0.001191575662233,0.001508533721790,-0.000489137077238,-0.004092154093087) * MODEL8_texOff(vec2(1,1));
res += mat4(0.021168077364564,0.007641484495252,0.000910383823793,0.000173292151885,-0.010467633605003,0.009032694622874,0.009564462117851,0.000309570576064,0.001117812469602,-0.003606319194660,-0.006487202830613,-0.003818243741989,-0.015576104633510,-0.000524122908246,0.005776481702924,0.004405456129462) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.031461466103792,0.043420691043139,0.046214390546083,0.038848083466291,0.002199935959652,0.018637785688043,0.006842740345746,-0.017565017566085,-0.009684911929071,0.002705919090658,0.011041091755033,0.008428162895143,-0.030252750962973,-0.045972894877195,-0.048812858760357,-0.036384351551533) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.000449135579402,0.002177205868065,0.007303107995540,0.016836553812027,-0.003022978082299,-0.004949823487550,-0.005871172063053,-0.005185064859688,0.005564108490944,0.011786870658398,0.003828975837678,-0.011559259146452,-0.000200854061404,0.001034097629599,-0.001540763070807,-0.011961759068072) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.014305105432868,-0.008551613427699,-0.002119243843481,0.001143182977103,0.021077912300825,0.026969090104103,-0.007673041429371,-0.006621106993407,0.003806928405538,-0.007238807622343,-0.008662492968142,-0.003752807620913,-0.021788422018290,-0.009891116991639,-0.000652751885355,0.003390423953533) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.013706508092582,-0.013746698386967,-0.016464289277792,-0.018593182787299,0.027399234473705,0.031012048944831,-0.030507201328874,-0.043883603066206,-0.023768968880177,0.019561145454645,0.027858672663569,0.016964305192232,-0.022795416414738,-0.033443827182055,-0.038514420390129,-0.035846676677465) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.000623552943580,-0.004477928392589,-0.006861540023237,-0.009688277728856,-0.003242229111493,-0.003984894603491,-0.006619224790484,-0.002068939385936,0.025723610073328,0.030003739520907,-0.010783379897475,-0.048532053828239,0.002944425912574,0.002417841693386,-0.000777547655161,-0.008497491478920) * MODEL9_texOff(vec2(0,1));
res += mat4(0.003416037186980,0.001826469902880,-0.000220292262384,-0.000811397796497,-0.007006525062025,0.002814620966092,0.006010868586600,0.000677549687680,0.001079136156477,-0.002237338339910,-0.001414843602106,0.000085113933892,0.000727377715521,0.003315526992083,0.003540772944689,0.003801140235737) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.005417786072940,0.005379745736718,0.005539566278458,0.004693272523582,-0.000434285553638,-0.000440126372268,0.002819901565090,-0.002589788055047,0.001212700735778,-0.000051196715503,-0.002294050762430,0.000168539758306,-0.001593804452568,-0.002748714527115,-0.001658262801357,-0.002546153496951) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001293275272474,-0.000649905472528,0.002046673325822,0.004615605343133,-0.002450861968100,-0.002664465224370,-0.000095859380963,0.003707613563165,-0.000679435208440,0.001960691064596,0.001066745840944,-0.000437162962044,0.002418347867206,0.001873540459201,0.001268949825317,0.001283328514546) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.027522984892130,-0.003694216487929,0.009907240048051,0.003891866886988,-0.015587581321597,-0.017673050984740,-0.013803052715957,-0.005585285834968,0.004124556668103,0.008058751001954,0.008231881074607,0.005369386635721,0.019269194453955,0.006211786065251,-0.002472331281751,0.000406594976084) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.010235738940537,0.016371719539165,0.003444042056799,-0.024760531261563,-0.016856832429767,-0.014940268360078,-0.014516869559884,-0.014276122674346,-0.008069735020399,-0.013304281048477,-0.011182025074959,-0.003778527490795,0.021177588030696,-0.017739590257406,-0.038722742348909,-0.003772881580517) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.001484129694290,0.000449744111393,0.001757912337780,0.002915066434070,-0.001791011658497,-0.004125151783228,-0.008786406368017,-0.013578368350863,0.004781904164702,0.006034073419869,0.004072630777955,0.000092641705123,-0.000351665425114,-0.003800820093602,0.000760009512305,0.019953560084105) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.031101774424314,-0.023923909291625,-0.029648147523403,-0.012053410522640,0.010497143492103,-0.005928839091212,-0.009956372901797,-0.004617389291525,-0.000723114528228,0.007059621158987,0.008712370879948,0.004654302727431,0.006550167687237,0.000758876325563,-0.001764754648320,-0.003628443228081) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.046691529452801,-0.023575922474265,0.048160232603550,0.081455655395985,0.026783628389239,0.038426820188761,0.038949973881245,0.029550706967711,-0.013289058580995,-0.021183565258980,-0.018826715648174,-0.010087687522173,-0.056707154959440,-0.012631503865123,0.028850656002760,0.020878080278635) * MODEL10_texOff(vec2(0,0));
res += mat4(0.007312878966331,0.007419919129461,-0.002955411560833,-0.024362238124013,-0.001470790477470,0.000443853292381,0.003698476590216,0.012649834156036,0.005213189404458,0.006554214283824,0.003769920440391,-0.001659558038227,0.000257921376033,0.012231291271746,0.017609594389796,-0.024044983088970) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.003536215052009,-0.001075973501429,0.003636574372649,0.007764576002955,-0.005705079529434,-0.005253876559436,-0.003268575062975,-0.000352160277544,0.001586179831065,-0.000296269892715,-0.001287435647100,-0.001312725711614,0.004081475548446,-0.002521995222196,-0.004311887547374,-0.001293802401051) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.001899139140733,-0.008899806067348,-0.010140500962734,-0.005166125483811,-0.003045743796974,-0.003895660862327,-0.004862543195486,-0.004912216216326,0.004925561137497,0.005827442742884,0.005825226660818,0.004588734358549,0.001585285179317,0.001352835213766,-0.002779087051749,0.001145270885900) * MODEL10_texOff(vec2(1,0));
res += mat4(0.007997008971870,0.008094352670014,0.001340619521216,-0.000707341765519,-0.000785278039984,-0.000998998410068,-0.001253990340047,-0.001949679688551,-0.000684746948536,-0.000026263280233,0.001922667841427,0.003803906962276,0.001999749569222,0.003559058997780,0.002966427942738,-0.000980427372269) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.023088693618774,-0.005496294237673,0.003297783201560,0.004598072730005,-0.026481134817004,-0.015029000118375,-0.003840714693069,-0.001208568224683,-0.004655594937503,-0.017283564433455,0.000554977625143,0.010058467276394,0.011450879275799,0.005208668299019,0.000244485912845,-0.002663919702172) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.038364809006453,0.044290676712990,0.005941430572420,-0.026650054380298,0.011193733662367,0.015394549816847,0.009688125923276,-0.016881089657545,-0.006651571020484,-0.016106540337205,0.005655367393047,0.023872036486864,0.001442678156309,0.004235370084643,0.007902851328254,0.014134856872261) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.006494087632746,-0.014854469336569,-0.015657398849726,0.006796693429351,0.003141921479255,0.005632814951241,0.009631179273129,0.010818297974765,0.004090517293662,0.003277007956058,0.000841902336106,0.001906153862365,-0.002194724977016,-0.000492408056743,0.000043848085625,-0.002378558274359) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.019695499911904,0.005903712008148,-0.002917743753642,-0.002977843629196,0.009234996512532,0.011107102967799,0.011913550086319,0.005642843432724,-0.069345057010651,-0.006505871657282,0.034530274569988,0.011821629479527,0.055869955569506,0.036545492708683,0.011444657109678,-0.003682841081172) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.035938501358032,-0.007217074744403,0.025145336985588,0.031961429864168,-0.003074336564168,-0.046389475464821,-0.055004544556141,-0.014313139021397,-0.009631010703743,0.026742409914732,0.047025769948959,-0.021773919463158,0.007640200667083,0.029799161478877,0.058107417076826,0.069722943007946) * MODEL11_texOff(vec2(0,0));
res += mat4(0.005384823773056,0.004019949119538,-0.007012620568275,-0.028178296983242,0.002203980460763,0.006002767942846,0.006423311773688,0.008218050934374,-0.004922621883452,-0.004150277469307,-0.006210579536855,-0.008807742968202,0.007745120674372,0.003805472515523,-0.000536146864761,0.000452399923233) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.005050135310739,-0.006809836253524,-0.004770543426275,-0.001842044643126,0.001384479575790,0.001155606471002,0.002711128443480,-0.001852091867477,-0.002986697480083,-0.001047186437063,0.007114128675312,0.004959240555763,0.016882143914700,0.008939549326897,0.003196725854650,0.001071161706932) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.005938659422100,0.000094907169114,-0.004346723202616,-0.005952972918749,0.006102419923991,0.011950610205531,0.016940768808126,0.010437480174005,0.004827376920730,-0.005697761196643,-0.004755181260407,0.004259838722646,0.003808314446360,0.011660953052342,0.018243312835693,0.019947182387114) * MODEL11_texOff(vec2(1,0));
res += mat4(0.004935300443321,0.003975603729486,0.003741971217096,0.005837234668434,-0.008995003066957,-0.007544583175331,-0.001609957544133,0.002661154838279,-0.000940563448239,-0.001734983758070,-0.002130544977263,0.001896412926726,0.001216437784024,-0.000318450824125,-0.001832866575569,-0.000488199875690) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001505505759269,0.002929897978902,0.004039760213345,0.002493355423212,-0.003905655117705,-0.003965909127146,-0.003023999743164,-0.000910189643037,0.000823468668386,0.001425600145012,0.000881571962964,-0.000272060220595,0.036059092730284,-0.001777996076271,-0.020460227504373,-0.007164634764194) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.015139060094953,-0.000672855065204,-0.010763627476990,-0.010076751932502,-0.001837752992287,0.003603531979024,0.004430465400219,-0.001865796861239,-0.014197120442986,-0.016656242311001,-0.013728667050600,-0.005826757289469,-0.000010337709682,-0.019972804933786,-0.023178583011031,0.019449897110462) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.003285156795755,-0.015951808542013,-0.009762858971953,0.013391659595072,-0.000160902825883,-0.003504728665575,-0.002959961537272,-0.000937185599469,0.002660165773705,0.000999216455966,-0.005246386863291,-0.009689327329397,0.003581835655496,0.006025257054716,0.001678593107499,-0.001665768097155) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.004390082322061,0.003989624325186,0.008873502723873,0.003919425420463,-0.002523165894672,0.000715822156053,0.002670870395377,0.002329934388399,0.000672643538564,0.003796790493652,0.003704070812091,0.001019571791403,0.021927377209067,-0.016724567860365,-0.015469810925424,-0.001084311166778) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.032633263617754,-0.007260949350893,-0.015562642365694,-0.011690377257764,0.003870680928230,-0.000761869770940,-0.003621159819886,-0.002590581309050,-0.002998813986778,-0.005302329082042,-0.006077904719859,-0.003149186028168,-0.007089443039149,-0.025415692478418,-0.010047302581370,0.030014039948583) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.005937112029642,-0.036325309425592,-0.017143271863461,0.040554467588663,-0.001590352039784,0.001452756812796,0.002454072469845,0.000975699513219,-0.000054495478253,-0.000863786553964,-0.001319118659012,-0.000923793588299,0.004491907544434,0.005413993261755,0.007491846103221,0.005608417093754) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.000784651609138,0.001192567870021,0.000171337189386,-0.000378755881684,-0.000315267243423,0.000947173801251,-0.000102163867268,-0.001199177466333,0.002336147241294,-0.000877186132129,-0.002532405313104,-0.003155814949423,0.006394295487553,0.000168519589351,-0.002749799517915,-0.000842201057822) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.001996450824663,-0.000541352084838,-0.001261616591364,-0.001564689213410,-0.000710855063517,-0.001331126317382,-0.000172662912519,-0.001371967722662,0.008864324539900,0.009549172595143,0.007828938774765,0.005671147257090,-0.001151122152805,0.000663809943944,0.001234874594957,0.005412486847490) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.000356464734068,0.000347225810401,0.001901648938656,-0.000879041559529,-0.001928386162035,-0.003484251676127,-0.003268836066127,-0.000494493229780,-0.000821907364298,0.000956966949161,0.003445259993896,0.007700235582888,0.000848525145557,0.000500972964801,-0.001676399842836,-0.002976579591632) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] sup-pixel convolution 2

vec4 hook()
{
vec4 res = vec4(-0.000073057773989,-0.000359216734068,-0.000371288275346,-0.000108676562377);
res += mat4(-0.004869829863310,-0.000466574361781,-0.006170444656163,-0.004394400399178,0.004642365965992,0.002236598636955,-0.000311714247800,-0.001102165202610,-0.003074621781707,-0.000601406791247,-0.000289715448162,-0.000232759906794,0.002249609678984,-0.003075071144849,-0.005027351435274,-0.005127553828061) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.025753580033779,0.011806536465883,-0.017652444541454,-0.023670945316553,0.007229027803987,0.009239053353667,0.010750377550721,0.008864347822964,0.001765452791005,0.006683596875519,-0.000477004854474,-0.006592167541385,-0.005430294666439,0.001612860243767,0.011535307392478,0.011339991353452) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.003547741798684,-0.005995315033942,-0.004586084280163,0.012297799810767,-0.000185525190318,0.000532276520971,0.002758912276477,0.005642622709274,0.003615201683715,0.002994520822540,0.000405577826314,-0.001989896642044,-0.000015996247384,0.005345459096134,0.002132518915460,-0.004777017049491) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.020925955846906,-0.012463926337659,0.000258413725533,0.000931945047341,-0.002103648846969,0.000545288319699,0.001619992428459,0.001232894137502,0.011033353395760,-0.001783538260497,-0.008508418686688,-0.004842724651098,-0.008454575203359,0.006483871955425,0.006664010230452,0.002714102389291) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.019695552065969,0.032962780445814,0.055293988436460,0.010088725946844,-0.001859205425717,-0.004795790649951,-0.005260137375444,-0.004515006206930,-0.053807519376278,-0.041096016764641,0.027262859046459,0.034831024706364,0.042871028184891,0.006290900055319,-0.038084916770458,-0.035305596888065) * MODEL7_texOff(vec2(0,0));
res += mat4(0.009053337387741,0.005682544317096,-0.012748529203236,-0.031440034508705,0.000283352856059,0.000775826803874,0.002849550917745,0.001907247235067,-0.005922350101173,-0.001106546609662,0.036087829619646,0.021385667845607,-0.007446713279933,-0.007067834492773,0.001139940577559,0.027128323912621) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.000106962055725,0.006939905229956,0.010665795765817,0.007310549728572,-0.009234329685569,-0.001379105262458,0.001718684914522,0.001722066197544,0.001794365467504,0.003251963993534,-0.003121786983684,-0.002399462740868,-0.003793812589720,0.001127703115344,0.007931797765195,0.007339404430240) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.000598225044087,0.000177466150490,-0.000661884143483,-0.002058465033770,-0.034259952604771,-0.035671364516020,-0.030514869838953,-0.022798445075750,0.003300297074020,-0.002352019539103,0.001681218505837,0.000838769949041,-0.000669804925565,-0.003483725711703,-0.004677904769778,-0.003711020806804) * MODEL7_texOff(vec2(1,0));
res += mat4(0.001056160195731,-0.003142857225612,-0.005417128559202,-0.002289798110723,0.001940091140568,-0.002100699581206,-0.009962294250727,-0.020321574062109,-0.002590226009488,-0.008349885232747,-0.005402253475040,0.010162526741624,-0.000186084405868,-0.002719094278291,-0.005888574291021,-0.004699681419879) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.003585139289498,0.000735590176191,0.003191929310560,0.002276018261909,-0.006690387148410,-0.002629623282701,0.002247618744150,0.002273672260344,0.002837113570422,0.001007454586215,-0.002249256707728,-0.002428415929899,-0.008722031489015,-0.002347303787246,0.002856231527403,0.001163841458037) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.007119505666196,-0.009840650483966,-0.009817924350500,-0.006720970850438,0.000294621597277,-0.005152354016900,-0.008243622258306,-0.008631932549179,0.002382080536336,0.003875236958265,-0.003108687000349,-0.003652285784483,-0.013409628532827,0.006248783785850,0.019196575507522,0.001339119044133) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.001833946676925,-0.002465475350618,-0.004914028104395,-0.006713163573295,-0.001011257409118,-0.000959792756476,0.002524208277464,0.004500025883317,-0.001967083197087,0.002364019164816,0.005738124717027,0.002110208617523,0.002087055006996,0.003503934480250,0.000394287431845,-0.007334344554693) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.004666117485613,-0.001498549361713,0.000334611861035,0.001518473378383,-0.024943022057414,-0.000639488745946,0.017028838396072,0.014233990572393,0.005243592429906,0.008780629374087,0.007854803465307,0.005110649857670,-0.016642484813929,-0.008587558753788,-0.005823956802487,-0.005415790714324) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.018336057662964,0.009174284525216,-0.001644514384679,-0.006658310536295,0.020203454419971,0.005563238169998,-0.008285379968584,-0.021498557180166,0.070374317467213,0.011192869395018,-0.062217921018600,-0.033367969095707,-0.042567532509565,-0.019856339320540,0.047188855707645,0.020454498007894) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.000895230274182,0.004598225932568,0.014007695950568,0.020609492436051,-0.009396349079907,-0.006943640299141,0.009300874546170,0.026421779766679,-0.001605603611097,-0.007217911072075,-0.019484585151076,0.015299237333238,0.007050026673824,0.005425641778857,0.007595229428262,0.000317804515362) * MODEL8_texOff(vec2(0,1));
res += mat4(0.005232131574303,0.003316754708067,0.003565154271200,0.003090607235208,-0.000937459350098,-0.002105006016791,-0.001523038605228,-0.001797563745640,-0.000611258437857,-0.004239513538778,0.001039327355102,0.001997062005103,0.003377645509318,-0.002186450641602,-0.002609526971355,-0.002129716565832) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.023934893310070,0.021482430398464,0.016890522092581,0.012919132597744,-0.000991622684523,-0.004146867431700,-0.001728712348267,-0.000895460951142,-0.006438336800784,-0.012706975452602,-0.004415166564286,0.007017129566520,-0.003195501863956,0.001035579945892,-0.003528941189870,0.001730192685500) * MODEL8_texOff(vec2(1,0));
res += mat4(0.004127237014472,0.009635529480875,0.015646299347281,0.021560946479440,0.001609314582311,0.002741340780631,0.003811875358224,0.003612373257056,-0.002395160729066,0.000170227314811,0.010569602251053,0.008809771388769,0.002452490618452,0.004069463815540,0.000726576545276,-0.007038634270430) * MODEL8_texOff(vec2(1,1));
res += mat4(0.011290471069515,0.005047721788287,-0.001171934884042,-0.002789518330246,-0.005797685589641,0.002282229252160,0.007892010733485,0.003795697819442,0.000791925704107,-0.001167784328572,-0.003622877877206,-0.002167093800381,-0.008744538761675,-0.004170122556388,0.002045100321993,0.005583841353655) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.003389972262084,0.008471252396703,0.013366843573749,0.014504630118608,0.003937093075365,0.007188155315816,0.001927120843902,-0.005799167323858,-0.007645942270756,-0.002605130197480,0.002093636430800,0.001715413876809,-0.013492000289261,-0.017050806432962,-0.019350843504071,-0.018643764778972) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.000642553146463,-0.000858750485349,0.001508036861196,0.004336933605373,-0.001447641407140,-0.002848584903404,-0.003711414523423,-0.001234781579114,-0.000474840722745,0.002133955713362,0.003673458471894,-0.002855997299775,0.003217885969207,0.001584626617841,-0.001244200393558,-0.004743078257889) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.015923546627164,-0.009559707716107,-0.002357734600082,0.001629550824873,0.012227479368448,0.034291669726372,-0.004972985479981,-0.007083113770932,0.005195076111704,-0.006296197418123,-0.009765948168933,-0.004988759756088,-0.023483186960220,-0.010297869332135,-0.002111928304657,-0.000095916715509) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.023851381614804,-0.023974703624845,-0.025153728201985,-0.023390561342239,0.020874710753560,0.046450059860945,-0.019245598465204,-0.060480918735266,-0.021136665716767,0.021334761753678,0.026376165449619,0.016536375507712,-0.032208763062954,-0.045030575245619,-0.048314329236746,-0.038973435759544) * MODEL9_texOff(vec2(0,0));
res += mat4(0.003247104352340,-0.001121516223066,-0.006276302970946,-0.014376257546246,-0.002964026294649,-0.004474498331547,-0.008030774071813,-0.009123593568802,0.027231194078922,0.036282166838646,-0.010985365137458,-0.052504029124975,0.000025732306312,0.000288151757559,-0.004040011204779,-0.016643011942506) * MODEL9_texOff(vec2(0,1));
res += mat4(0.005405442789197,0.002476655179635,-0.000299181207083,-0.000588005757891,-0.002849570009857,0.003630931256339,0.005269933026284,0.000217783715925,0.001273827976547,-0.002661020960659,-0.001797363394871,0.000420783646405,0.003347061574459,0.005441531538963,0.003976437263191,0.002437986200675) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.007493054959923,0.008512149564922,0.009379344061017,0.008112599141896,0.004006641451269,-0.003210366005078,-0.003440311411396,-0.001588342944160,0.000891856092494,0.002607012866065,0.000179264490725,0.001289897016250,0.000119013042422,-0.002993699628860,-0.000904102402274,0.001290855580010) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001381187932566,-0.000899075821508,0.001272926456295,0.003928318619728,-0.004224679898471,-0.004113569390029,-0.000735122768674,0.005744159221649,0.000446024729172,0.002425148850307,-0.000386323488783,-0.003473003162071,0.000126810700749,0.001076428685337,0.001693250495009,0.001464756904170) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.005344075616449,-0.000322258565575,0.006199495401233,0.003267617663369,-0.008688918314874,-0.011208345182240,-0.009221536107361,-0.003850238164887,0.011671429499984,0.009193374775350,0.006720874924213,0.003386055817828,0.007722595240921,-0.000507918652147,-0.001102701760828,0.000961727753747) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.004521127324551,0.007191470358521,0.007923077791929,-0.000484983407659,-0.008006571792066,-0.006088872905821,-0.006323312409222,-0.007054791785777,0.010742187500000,0.010369544848800,0.011183463037014,0.012401108630002,-0.005009284708649,-0.006600953172892,-0.002408915897831,0.009578412398696) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.003788471687585,-0.004026301670820,-0.001450122683309,0.001897917827591,-0.002054159529507,-0.003385325893760,-0.006109398789704,-0.007973978295922,0.001789923058823,0.003209063783288,0.005096956156194,0.008771282620728,-0.001996776554734,-0.004806715529412,-0.002165746176615,-0.001310236053541) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.064996302127838,0.010726217180490,-0.028251849114895,-0.022793352603912,0.007190082222223,-0.007686499971896,-0.011104540899396,-0.004778556991369,-0.010384769178927,0.002044856548309,0.006663772277534,0.004263200797141,-0.011309766210616,-0.003716677194461,0.000147738886881,0.001909880083986) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.029439499601722,-0.050160698592663,-0.010561916977167,0.058508329093456,0.025763763114810,0.037674125283957,0.036036536097527,0.024845838546753,-0.033253934234381,-0.042950216680765,-0.038841143250465,-0.026212364435196,-0.029786869883537,0.045744609087706,0.039313673973083,-0.009271058253944) * MODEL10_texOff(vec2(0,0));
res += mat4(0.006059897132218,0.007638516370207,0.004906555637717,-0.004067220259458,-0.002163432072848,-0.000566969043575,0.001957080559805,0.010248827748001,0.005611760541797,0.004783076699823,-0.003186415648088,-0.015133055858314,0.005179829895496,0.013430800288916,-0.003444286063313,-0.050105981528759) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.007515144068748,0.001674859900959,0.004346118308604,0.005317060276866,-0.006322693545371,-0.007051119115204,-0.005625907331705,-0.001560795702972,0.006089454516768,0.003366508753970,0.000908642366994,-0.000815973675344,0.001455260673538,-0.005552164278924,-0.004336903803051,-0.001171027193777) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.000312427699100,-0.008620437234640,-0.015842152759433,-0.015591169707477,-0.003399867564440,-0.002358733210713,-0.003183157183230,-0.004123195074499,0.010840969160199,0.012013208121061,0.011849554255605,0.010088804177940,0.005051190964878,0.005475455895066,-0.002453484572470,0.000746214936953) * MODEL10_texOff(vec2(1,0));
res += mat4(0.008498479612172,0.010352163575590,0.003816856304184,0.000798160966951,-0.001602836069651,-0.002132486552000,-0.003023963188753,-0.004206048324704,0.000099729135400,0.001641419250518,0.004453879781067,0.007540355902165,0.002767342375591,0.003529730020091,-0.000428978120908,-0.003090484533459) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.006833272986114,0.001030913204886,0.006702331360430,0.006237917114049,-0.014444441534579,-0.001142981112935,0.006367940921336,0.006129211280495,0.002571373013780,-0.006782713346183,-0.006275733932853,0.000969972577877,-0.000637761841062,-0.000067431152274,0.000696750765201,0.000515530933626) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.006671655457467,0.012955953367054,0.012324719689786,-0.001566031714901,-0.004898876417428,-0.006791950669140,-0.012351352721453,-0.021171163767576,-0.004472345113754,-0.004857147112489,0.002884417539462,0.010123983025551,0.000720746058505,-0.000778017973062,-0.001771165640093,-0.000038030106225) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.001271813409403,-0.001139117055573,-0.009457548148930,-0.015308478847146,0.003056654008105,0.003427036805078,0.004651829600334,0.001167915994301,0.002574759069830,0.001987883821130,-0.000598246580921,-0.002707689534873,0.000280336564174,0.001580331707373,0.001330489525571,-0.000702152145095) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.019175851717591,0.008613301441073,-0.003385839285329,-0.003931710030884,0.034480549395084,0.015011759474874,0.006007747724652,-0.003811357775703,-0.064929306507111,-0.023989455774426,0.029157726094127,0.013082923367620,-0.046019099652767,-0.027129845693707,-0.012728784233332,-0.004143912810832) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.031868081539869,-0.037365008145571,-0.013166208751500,0.014143601059914,-0.029833626002073,-0.047268193215132,-0.007411966100335,0.044234275817871,-0.023832632228732,0.001593611319549,0.059217464178801,0.018507821485400,-0.020336981862783,-0.036492574959993,-0.051525693386793,-0.058473315089941) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.001672921120189,0.005452467128634,0.011872798204422,-0.003066495759413,0.005252203904092,0.008063547313213,0.000699646654539,-0.009113602340221,-0.000728111132048,-0.000361246726243,-0.002896441146731,-0.007163347210735,0.000611328578088,0.000900365354028,0.001093683065847,-0.003097557462752) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.004174260422587,-0.007266485597938,-0.007381933275610,-0.004203467164189,0.000676024239510,-0.001025609904900,-0.002633164869621,-0.007108150050044,-0.009162594564259,0.000597439648118,0.011948315426707,0.008650367148221,-0.003426859853789,-0.003641461720690,0.000936046475545,0.005479320883751) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.004905827343464,0.000103940736153,-0.004201690200716,-0.004919983912259,0.008743591606617,0.015931142494082,0.020041620358825,0.009775999002159,0.013212164863944,0.004530442412943,-0.007815151475370,-0.006975991185755,0.002372848102823,0.002324804430827,-0.001629207516089,-0.006065359339118) * MODEL11_texOff(vec2(1,0));
res += mat4(0.006438128184527,0.008428033441305,0.004785509314388,0.004878830630332,-0.009465845301747,-0.008389964699745,-0.001713421661407,0.004225182347000,-0.003037213580683,-0.003038281807676,-0.003752124495804,0.003445302136242,0.001153229619376,0.001198900747113,0.001557531068102,0.003236991586164) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.000147255428601,0.001989530399442,0.003512497991323,0.002586690941826,0.009092758409679,0.003249084344134,0.000126803410240,-0.001805398263969,-0.002188547747210,-0.002316355239600,-0.002370693022385,-0.001601268653758,0.020999820902944,0.001986910821870,-0.013486290350556,-0.007496928330511) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.007695049978793,0.002184912795201,-0.002812928287312,-0.003098356304690,0.012299323454499,0.016345785930753,0.018207436427474,0.015979699790478,-0.011477228254080,-0.011087721213698,-0.009437408298254,-0.006212203763425,-0.003445391776040,-0.013159617781639,-0.010957695543766,0.010367203503847) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.000935210904572,-0.005148415453732,-0.004511926788837,0.004358481150120,-0.000751162122469,-0.000017722613848,0.001791392220184,0.006700921338052,-0.000391035951907,-0.003004200290889,-0.007837071083486,-0.010638855397701,0.003583510871977,0.004890064708889,0.002276286715642,-0.000677275296766) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.004394161514938,0.004467966500670,0.008094788528979,0.003415749175474,0.038173038512468,0.016996648162603,0.003071048296988,-0.000141296521178,-0.002130439504981,0.000070473688538,0.002428335603327,0.001264743274078,0.035688892006874,-0.020535901188850,-0.018590388819575,0.002881881780922) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.032249383628368,-0.012613104656339,-0.018595162779093,-0.013916814699769,0.045987918972969,0.066715963184834,0.078178666532040,0.067587614059448,0.022731902077794,0.018841575831175,0.008426835760474,0.001009745174088,0.000636964105070,-0.026519902050495,-0.020875122398138,0.038789454847574) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.004170765634626,-0.042745500802994,-0.017744714394212,0.049419697374105,0.002696398179978,0.003579006530344,0.007995598018169,0.020294459536672,-0.001995404716581,-0.000565740803722,0.004351401235908,0.014032068662345,0.005561405792832,0.007204466499388,0.005340606905520,0.003902225755155) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.001496689394116,0.001403104048222,0.001034430926666,-0.000341822742485,0.005057980772108,0.000316146499244,-0.004068267531693,-0.004823469556868,-0.000362663849955,-0.002036328427494,-0.002861940767616,-0.002982172882184,0.005849659442902,0.001138344174251,-0.003864983562380,-0.003087699646130) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.003579492913559,0.002011283999309,-0.002194283762947,-0.003500521648675,0.005051027052104,0.009787687100470,0.013843464665115,0.010454251430929,0.006705573759973,0.007535234559327,0.005712078884244,0.002653917763382,-0.004796708934009,-0.001510143978521,0.001451123389415,0.003497402416542) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.002548091812059,-0.002772524952888,-0.001663059927523,0.000223622657359,-0.003393057733774,-0.005966763477772,-0.005397410597652,0.000146371312439,-0.001837857300416,-0.000083404091129,0.001746813533828,0.005031203851104,0.001080382382497,0.001470376504585,0.000019118184355,-0.002979343989864) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] sup-pixel convolution 3

vec4 hook()
{
vec4 res = vec4(-0.000196349370526,-0.000517061562277,-0.000843191461172,-0.000552758108824);
res += mat4(-0.004134849179536,-0.000817703199573,-0.004225723911077,-0.007478746119887,0.007496503647417,0.004144594538957,0.001332816085778,0.000229192679399,-0.000410503242165,0.001984560396522,0.002244259929284,0.001258528791368,-0.004998594988137,-0.005994934588671,-0.004448796622455,-0.002278322586790) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.001862523844466,0.011970815248787,0.009750301018357,-0.002957315184176,0.010729992762208,0.012003827840090,0.012313237413764,0.010645085945725,0.003280523931608,-0.000245712290052,-0.006070744711906,-0.005078422371298,0.000620599719696,-0.000645459047519,-0.000889441813342,-0.002059072256088) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.008223506622016,-0.009274712763727,-0.006904348265380,-0.002565025584772,0.001822744146921,0.003235519630834,0.005717294756323,0.009393362328410,0.001383487251587,-0.000619971367996,-0.001357972621918,0.001338521484286,0.002626322209835,0.009797267615795,0.006898679304868,0.000744722317904) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.013020095415413,-0.012594025582075,-0.005734189879149,0.001168441376649,-0.009567857719958,-0.002789755119011,-0.000330976181431,-0.000746190606151,-0.000170133294887,-0.005724059417844,-0.008265922777355,-0.004401934798807,0.021951150149107,0.012790844775736,0.002495423192158,-0.002236249390990) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.063574135303497,-0.034127064049244,0.044912334531546,0.060258317738771,-0.027781233191490,-0.028832497075200,-0.024829773232341,-0.018243430182338,-0.055227603763342,-0.004362170584500,0.049669664353132,0.025194969028234,0.007380977738649,-0.033194173127413,-0.037572912871838,0.003950002603233) * MODEL7_texOff(vec2(0,0));
res += mat4(0.006564558483660,0.015144196338952,0.012280313298106,-0.021481949836016,0.001044830074534,-0.003782541956753,-0.009186735376716,-0.017613517120481,-0.002833477919921,0.000245920120506,0.019527155905962,-0.008371334522963,-0.006456398870796,-0.004054796881974,0.004851558245718,0.017313951626420) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.002330923918635,0.000744390126783,0.003878669813275,0.003937146160752,0.007356731686741,0.005818100646138,0.003072381950915,0.001263286103494,-0.004013669677079,0.001571801141836,-0.002137952717021,-0.001113445963711,-0.004269447177649,-0.000285745452857,0.006124468054622,0.004308645613492) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.005836103577167,-0.002060661790892,-0.007427971344441,-0.006186770275235,-0.005431307945400,-0.001226917491294,0.002959374804050,0.004737585317343,0.005342003889382,-0.010942160151899,-0.003326174104586,-0.004398604389280,0.006440415978432,0.005584035068750,0.002274019876495,-0.000796733133029) * MODEL7_texOff(vec2(1,0));
res += mat4(0.004759091418236,0.002219244139269,-0.002791970036924,0.001451233867556,0.004626566078514,0.001853488152847,-0.000186421966646,-0.001541430479847,-0.005504549946636,-0.009114851243794,0.006011822726578,0.027979997918010,-0.004295507445931,-0.005153332371265,-0.006245743017644,-0.001709637232125) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.007929448969662,-0.003158075734973,0.000531630823389,0.001971188234165,-0.001620912225917,-0.001766772358678,-0.000021054040189,-0.000271548808087,0.003417500760406,-0.003215772332624,-0.006255086511374,-0.004243295174092,-0.001159702078439,-0.003477331250906,-0.000836468941998,-0.000429464038461) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.009409918449819,-0.011399303562939,-0.011771691963077,-0.010928671807051,-0.001823058119044,-0.003873673267663,-0.003737997729331,-0.002149996114895,0.000742877251469,-0.001796781551093,-0.004759949631989,-0.000393272930523,-0.003974624909461,0.002416503150016,0.007033713627607,0.004615105688572) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.001550450571813,-0.002271930454299,-0.004535717424005,-0.007584804203361,0.000651877839118,-0.000024537343052,0.001008527004160,0.001344585791230,0.004314003512263,0.006663928739727,0.006983038503677,0.003636981127784,0.002166479825974,0.001502303755842,-0.004562230780721,-0.005789806600660) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.002762237098068,0.000366436899640,0.001648975769058,0.002867515897378,-0.025416553020477,0.000652822083794,0.018125919625163,0.015530874952674,0.015878032892942,0.005382202565670,0.002728118561208,0.000514711311553,-0.029666397720575,-0.008677174337208,-0.002188025508076,-0.003622344927862) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.042493127286434,0.039776071906090,0.027525361627340,0.013409234583378,0.023774910718203,0.007479889318347,-0.010522599332035,-0.025366865098476,0.012235409580171,-0.040048792958260,-0.035417485982180,0.012717497535050,-0.051492687314749,-0.011603985913098,0.062564961612225,0.012340751476586) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.001413847785443,0.004338016733527,0.015390028245747,0.030049484223127,-0.008842674084008,-0.006568287499249,0.009262708015740,0.027201712131500,-0.000953934912104,-0.002569907344878,0.004743186756968,0.022341731935740,0.006964121013880,0.007924997247756,0.011802347376943,-0.002800057409331) * MODEL8_texOff(vec2(0,1));
res += mat4(0.003586319275200,-0.000348346249666,-0.000422192417318,0.000724538054783,-0.005176580045372,-0.003249766537920,0.000507332559209,0.000639735721052,0.005160974804312,-0.004211997147650,-0.002825858769938,0.000447610160336,0.006412535905838,-0.003114776918665,-0.003066682023928,-0.002043513115495) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.017822951078415,0.022450715303421,0.019316121935844,0.011946828104556,-0.000274783931673,-0.005484466906637,-0.003570088651031,-0.003275787457824,-0.042286701500416,-0.005059975199401,0.018960570916533,0.016967684030533,-0.004829805810004,0.000179586655577,-0.000812691811007,0.007240964099765) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.001928974292241,-0.003169266739860,-0.000532418314833,0.008623122237623,0.001319703995250,0.001912392908707,0.004613943863660,0.006059377919883,0.001927770092152,0.016119278967381,0.016988934949040,-0.023107342422009,0.002620450686663,0.004424757324159,0.001715029473417,-0.006612894125283) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.008537958376110,-0.002031168667600,-0.001505982945673,-0.002028628718108,-0.002980566583574,0.001194054842927,0.005566059146076,0.003815880045295,0.001914668246172,0.000233030077652,-0.001516358228400,-0.001092988648452,0.003618351882324,-0.004148665815592,-0.003812509588897,0.000316762452712) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.023242518305779,-0.028367180377245,-0.028322273865342,-0.021654389798641,0.005028410349041,0.002063953084871,-0.004144020378590,-0.005204970948398,-0.005920720752329,-0.003345504170284,0.000359128374839,0.000987891573459,0.012039843946695,0.017977042123675,0.017213763669133,0.010079581290483) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.000023298613087,-0.001709957839921,-0.002837668871507,-0.008243368007243,-0.001172513817437,-0.001391367870383,-0.001745882676914,0.000878457911313,-0.001621833886020,-0.001363318064250,0.002086700871587,0.000032308562368,-0.001246095634997,-0.002401370089501,-0.000920065329410,0.004974573850632) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.003708437085152,-0.001445748144761,0.000991925946437,0.000878431776073,-0.002941020997241,0.032316010445356,0.003877068636939,-0.005690339021385,0.005889576859772,-0.005411745049059,-0.009813917800784,-0.005453182384372,0.022216733545065,0.007053273729980,-0.000445450190455,-0.000716232985724) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.016758915036917,-0.017955711111426,-0.015720890834928,-0.008053778670728,0.008751221001148,0.046314988285303,-0.001623498159461,-0.057333935052156,-0.018496369943023,0.014318804256618,0.021364239975810,0.017193509265780,0.035406805574894,0.052733678370714,0.056412197649479,0.044651467353106) * MODEL9_texOff(vec2(0,0));
res += mat4(0.005087568890303,0.004239351954311,-0.000196838183911,-0.008293344639242,-0.002715953625739,-0.004845763090998,-0.007672971114516,-0.011957906186581,0.023345984518528,0.035786755383015,-0.005711217876524,-0.044424939900637,-0.001504523563199,-0.001748595037498,0.003645761171356,0.013198115862906) * MODEL9_texOff(vec2(0,1));
res += mat4(0.003937240224332,0.002125830622390,0.000451851374237,0.000183910320629,0.005843348335475,0.006782007869333,0.001504038111307,-0.000451821892057,0.002996352966875,-0.002870181342587,-0.003373430809006,-0.000951929483563,0.007667970843613,0.005737853236496,0.001975626917556,-0.000213840990909) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.006310405209661,0.006987510249019,0.008255388587713,0.007448754273355,0.012284575961530,0.002374031348154,-0.011488614603877,-0.006157302763313,-0.005722202826291,0.005685956217349,0.005865337327123,0.005111813545227,0.009858397766948,0.009723869152367,0.011436255648732,0.011080897413194) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001121763954870,-0.000488379388116,0.000305492285406,0.002117329509929,-0.006072536576539,-0.005295787006617,-0.002351509639993,0.006347178015858,0.005120391026139,0.005795334931463,-0.004756588023156,-0.014521611854434,-0.003264494938776,-0.002195879118517,0.000275905709714,0.004009169992059) * MODEL9_texOff(vec2(1,1));
res += mat4(0.002442367607728,0.003134179161862,0.005922892130911,0.005343452561647,-0.001340302871540,-0.003953504841775,-0.003495781216770,-0.001019401010126,0.010634692385793,0.006620535161346,0.003317557508126,0.000864177243784,-0.000898385653272,0.000560768763535,0.001396556501277,0.000151431551785) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.004537799861282,0.004279512912035,0.002249653218314,0.001839313423261,0.000379349512514,0.002697996096686,0.002876099199057,0.001434008823708,0.015031983144581,0.016925618052483,0.016136903315783,0.013891492970288,0.001700301887468,0.010403190739453,0.003462700871751,-0.000780989532359) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.003662131261081,-0.005445298738778,-0.004685256630182,-0.000579782994464,-0.001593544031493,-0.001755903474987,-0.001760411425494,-0.001205266802572,-0.000368645822164,0.000634601223283,0.003554538358003,0.009319193661213,-0.006756007205695,-0.008406735025346,-0.007660945877433,-0.008046166040003) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.026772387325764,0.028502186760306,-0.004718695301563,-0.016418771818280,-0.002591659780592,-0.011561805382371,-0.011653201654553,-0.004529711324722,-0.013460973277688,0.001015196787193,0.006333285942674,0.004781119525433,-0.015188325196505,0.002885229652748,0.004463606979698,0.006014257203788) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.013815829530358,-0.020882304757833,-0.049033880233765,-0.022522872313857,0.010803319513798,0.019405588507652,0.018285168334842,0.009573320858181,-0.039009492844343,-0.049573071300983,-0.046431872993708,-0.032988507300615,0.045594740658998,0.074101686477661,-0.010775056667626,-0.054565966129303) * MODEL10_texOff(vec2(0,0));
res += mat4(0.003133393125609,0.004378297366202,0.005214658565819,0.010439377278090,-0.002217104425654,-0.001910263323225,-0.001538945478387,0.001808026572689,0.006086857523769,0.005253109615296,-0.004136118106544,-0.018795160576701,0.002944203093648,-0.001494735362940,-0.024350281804800,-0.025586707517505) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.018967255949974,-0.003301758319139,0.004041051957756,0.002416735747829,-0.000220530520892,-0.005723070353270,-0.006360889412463,-0.002381076803431,0.011088293045759,0.009253106079996,0.006055545993149,0.002468695398420,0.000047778437875,-0.003990617580712,-0.000778790737968,0.001175744924694) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.004737854469568,0.011372883804142,0.006312424317002,-0.014264869503677,0.004085130058229,0.009461515583098,0.010299346409738,0.007108434569091,0.014513064175844,0.014734333381057,0.014250007458031,0.013473508879542,0.007145031355321,0.000145072495798,-0.006238977890462,0.000167219041032) * MODEL10_texOff(vec2(1,0));
res += mat4(0.005359335336834,0.005510614719242,-0.000117187235446,-0.002328246366233,-0.001415911247022,-0.001077948370948,-0.001087433891371,-0.000613769516349,0.002198368776590,0.004904501605779,0.008072834461927,0.011329702101648,0.000865273410454,-0.000334332202328,-0.000235309969867,0.003573120804504) * MODEL10_texOff(vec2(1,1));
res += mat4(0.002860504901037,0.006958618294448,0.010743650607765,0.007981430739164,-0.002163385972381,0.006883329711854,0.010735497809947,0.007840885780752,-0.002445332938805,-0.002344339154661,-0.005355256143957,-0.001006952952594,0.000302723550703,0.000691918889061,-0.000172093205038,-0.000742772186641) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.013437197543681,-0.007483158260584,0.002539208857343,0.005142401903868,-0.010622317902744,-0.008370853029191,-0.008664555847645,-0.009084444493055,-0.004065488465130,0.003182569518685,0.007097589783370,0.001052190898918,-0.000566221075132,0.000681815552525,0.002646449021995,0.002287360373884) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.004470824263990,0.004551641177386,-0.000212436425500,-0.010256796143949,0.002217083238065,-0.000604361586738,-0.002962612314150,-0.006133088376373,0.001119571737945,0.001420620712452,-0.000099183933344,-0.005314085632563,0.001401591347530,0.000234127277508,-0.001326952595264,-0.001224143197760) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.000598945713136,0.005777175072581,-0.000509122270159,-0.001791491638869,0.015015592798591,-0.005518362391740,-0.007209018338472,-0.010327416472137,-0.037936728447676,-0.035568136721849,0.015312328934669,0.015520827844739,-0.034214202314615,-0.025646150112152,-0.011243001557887,0.001500205020420) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.025530690327287,-0.018518410623074,-0.044588029384613,-0.027718527242541,-0.025400476530194,-0.006739173550159,0.048844419419765,0.060427274554968,-0.023704431951046,-0.022786347195506,0.042408503592014,0.047427210956812,-0.012017454952002,-0.016882544383407,-0.027579799294472,-0.040068045258522) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.016586743295193,-0.008965406566858,0.018461847677827,0.039333201944828,0.005631540436298,0.005362563300878,-0.004808873403817,-0.015735188499093,0.001904130564071,0.002233812585473,0.000259508611634,-0.002570939017460,0.000954162678681,-0.000486048840685,-0.001744743320160,-0.002791492268443) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.000928687804844,-0.003283290192485,-0.004458624869585,-0.003599067684263,-0.008610017597675,-0.005895193666220,-0.004457058850676,-0.004403289407492,-0.022764453664422,0.001726194052026,0.017413733527064,0.011333064176142,-0.043234799057245,-0.030609825626016,-0.013162706978619,-0.000686230952851) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.000141454118420,0.005934435408562,0.005842345301062,0.002469290047884,0.011377458460629,0.010946094058454,0.001087641809136,-0.009676428511739,0.015125952661037,0.017467401921749,-0.000548089097720,-0.019789678975940,-0.009518834762275,-0.025400850921869,-0.044378396123648,-0.051948554813862) * MODEL11_texOff(vec2(1,0));
res += mat4(0.001027959631756,0.003886130405590,-0.001023739925586,-0.003075654618442,-0.004787087440491,-0.003138454398140,0.001032933476381,0.004815899301320,-0.004848777782172,-0.005128746852279,-0.006575229112059,0.000211819700780,-0.003691521938890,-0.001041058683768,0.001370228710584,-0.000194368476514) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001304341945797,0.000626896915492,0.002150046173483,0.001008550985716,0.004746941383928,0.003729656571522,0.003007104387507,0.001354421954602,-0.000796183885541,-0.002743843011558,-0.003296192502603,-0.002583893947303,0.009245643392205,0.003344850149006,-0.006728347856551,-0.006215591449291) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.005080743227154,0.003072727238759,0.000150958003360,-0.001396384905092,0.006285322364420,0.002432133769616,0.001864074147306,0.004320470616221,0.001712007680908,0.004312710836530,0.004710699431598,0.002344183158129,-0.004973957315087,-0.007108466234058,-0.001961632631719,0.004900664556772) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.001176063553430,-0.002903624903411,-0.002240577712655,0.002086492720991,0.001374264014885,0.004264753777534,0.005005446262658,0.006158946081996,-0.001004411838949,-0.001917920191772,-0.002724432386458,-0.001531212939881,0.002091741887853,0.002515034750104,0.002107892418280,0.000294573488645) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.004796146880835,0.004052547272295,0.006002596579492,0.002548204967752,0.000136541129905,0.004999209195375,0.001904395991005,-0.001149199437350,-0.001753467950039,-0.000866739195772,0.001680154353380,0.001296007772908,0.050767548382282,-0.017576148733497,-0.024859329685569,0.000652688497212) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.029136808589101,-0.011187721975148,-0.019471269100904,-0.016141427680850,-0.009349262341857,-0.015491837635636,-0.010814826935530,-0.003208713373169,0.025851678103209,0.021072998642921,0.010834446176887,0.002600230742246,0.004557807464153,-0.027735248208046,-0.030563073232770,0.041946303099394) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.001268992084078,-0.038961000740528,-0.018304370343685,0.044259943068027,0.001260929857381,0.002260278677568,0.001798792160116,-0.003017825772986,-0.001352677703835,0.001906455960125,0.007686911150813,0.017744597047567,0.006655055098236,0.008649836294353,0.003227470209822,0.001364225056022) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.002345198532566,0.002720768097788,0.004657210782170,0.001933856867254,0.002707273699343,0.003264095867053,0.001788544352166,0.002030313247815,-0.005318980198354,-0.002670096000656,-0.001637835637666,-0.001510055153631,0.005067364312708,-0.001275018556044,-0.005277596879750,-0.003695209976286) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.012604281306267,0.002999478252605,-0.004797138739377,-0.006469085346907,-0.000293435790809,-0.000454100198112,0.001220793928951,-0.000583777029533,-0.010246829129755,-0.011335110291839,-0.009982231073081,-0.007977254688740,-0.007053698413074,-0.006892133504152,0.000866942573339,0.005329804029316) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.003699800930917,-0.009115445427597,-0.005814113188535,0.007201605942100,0.002270227298141,0.002341729588807,0.003241072408855,0.003450830467045,-0.001782664679922,-0.001677393331192,-0.003446108428761,-0.006318061146885,0.001844985759817,0.002053767209873,0.002556194318458,0.000211804726860) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV4
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] sup-pixel convolution 4

vec4 hook()
{
vec4 res = vec4(0.001006693113595,0.000605696928687,-0.000181852199603,0.000018006094251);
res += mat4(0.001901713665575,0.003821450052783,0.003434411482885,-0.003639041678980,0.004632988944650,0.002971176523715,0.001207094755955,0.000472105137305,0.000767517951317,0.001874133828096,0.001634858665057,0.000764319091104,-0.006027314811945,-0.004679259378463,-0.001433525467291,0.000120229822642) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.004082066472620,-0.000144951132825,0.008452420122921,0.006916422396898,0.007641311734915,0.007277759723365,0.006731527857482,0.005636209156364,0.000719217176083,-0.002680858829990,-0.004237819928676,-0.001693734317087,0.002007135888562,-0.000953508017119,-0.002883938373998,-0.004506360739470) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.008841949515045,-0.011891250498593,-0.004815504420549,0.000564934685826,0.001379679772072,0.002451400971040,0.004195662215352,0.007011508569121,0.000999231589958,-0.001190205221064,-0.001847493229434,0.001071093603969,0.004325650166720,0.010004953481257,0.005278683733195,0.000293283432256) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.039373241364956,0.003223240375519,-0.007095053326339,-0.001759996986948,-0.012088849209249,-0.004166105296463,-0.001473464537412,-0.001397231826559,-0.006878064014018,-0.005307461600751,-0.005670712329447,-0.003157105529681,0.030805412679911,0.008955933153629,-0.001820921432227,-0.006545288022608) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.032819293439388,-0.075579449534416,-0.023987235501409,0.043765012174845,-0.026411555707455,-0.027942968532443,-0.025477038696408,-0.020046699792147,-0.030568061396480,0.018601482734084,0.037909116595984,0.005251067690551,-0.025917245075107,-0.038077019155025,-0.000962681835517,0.041289065033197) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.001152619952336,0.007939758710563,0.026759618893266,0.023643074557185,-0.001993885030970,-0.007167601026595,-0.011873175390065,-0.018612788990140,-0.001049862126820,0.001642424263991,0.006715422961861,-0.016565637663007,-0.001754405093379,0.002144704107195,0.002286116825417,-0.005663319025189) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.004553820006549,-0.000670076289680,-0.003962732385844,-0.003707562573254,0.012522618286312,0.003902808530256,0.001416282495484,0.002335217781365,-0.000413442670833,0.003049696329981,-0.002308683935553,-0.001745103392750,-0.013284767046571,-0.005123655777425,0.002972036134452,0.002294105011970) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.019919052720070,0.007685920223594,-0.011913525871933,-0.016850557178259,0.043463025242090,0.051236052066088,0.044222161173820,0.027844227850437,0.004063055850565,-0.027734385803342,-0.012072784826159,-0.002465273020789,0.021759936586022,0.023089464753866,0.007615742273629,-0.008528255857527) * MODEL7_texOff(vec2(1,0));
res += mat4(0.005564637016505,0.003938261885196,-0.002538256812841,0.007123847026378,0.001064508105628,0.001544371596538,0.010413084179163,0.026479868218303,-0.007899639196694,-0.011626112274826,0.020552329719067,0.049372222274542,-0.005351898260415,-0.004646213259548,-0.005181021057069,0.004544065799564) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.003828754881397,-0.002177586546168,-0.000953006616328,0.000573370489292,0.001742471125908,-0.000474546657642,-0.001148765790276,-0.001570211490616,0.001071719452739,-0.004513241350651,-0.005499237217009,-0.003563962876797,0.000788040459156,-0.002493484877050,-0.002367640845478,-0.001728511066176) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.006727167870849,-0.006861519534141,-0.005562808364630,-0.005202027503401,-0.000756489753257,-0.001462607295252,-0.000650125031825,0.001141519052908,-0.002252412494272,-0.002302997745574,-0.001941122813150,0.001386941410601,0.000223218987230,0.000354115560185,0.003715076250955,0.004870687611401) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.000418406736571,0.000088082146249,-0.001621375558898,-0.004005162511021,0.001443216810003,0.000241054192884,0.000262290152023,0.000485302007291,0.004071559756994,0.005223479121923,0.005186553113163,0.000348368223058,0.002311953110620,0.000367359054508,-0.005587818101048,-0.002558689564466) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.009669937193394,0.004365466535091,0.001277836970985,-0.000878530263435,-0.020915815606713,0.000837316794787,0.014872340485454,0.013210716657341,0.005312556400895,-0.001248244079761,0.000283244822640,-0.000127260427689,-0.031929299235344,-0.009009993635118,0.001339564681984,-0.000357548706234) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.009935743175447,0.013900021091104,0.018604416400194,0.018774647265673,0.021567469462752,0.005708155687898,-0.012627314776182,-0.025188695639372,-0.020930085331202,-0.023040262982249,0.007512351032346,0.021681997925043,-0.047506220638752,0.000426963553764,0.059651482850313,0.005515512079000) * MODEL8_texOff(vec2(0,0));
res += mat4(0.003006104845554,0.004626055248082,0.003833895549178,0.005934073124081,-0.006172642111778,-0.004779067356139,0.008212998509407,0.022749047726393,-0.002921208506450,-0.003545626299456,0.007334775757045,0.002122641773894,0.005431316792965,0.008650312200189,0.011344547383487,-0.008780848234892) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.002493361709639,-0.004900448489934,-0.007644330151379,-0.005825543310493,-0.012031579390168,-0.003033374203369,0.005866296589375,0.004851953592151,-0.010244354605675,-0.007050407584757,-0.001412155805156,0.003976439125836,0.006020614877343,-0.004929324146360,-0.003740978194401,-0.001969821052626) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.038212139159441,-0.028186907991767,-0.014825086109340,-0.005729910451919,0.002889751689509,-0.004888375755399,-0.005608100444078,-0.007996737025678,-0.016572605818510,0.052057188004255,0.026805635541677,-0.012030824087560,-0.012013132683933,-0.005759123712778,0.007546744775027,0.014631260186434) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.001894693006761,-0.010235145688057,-0.022719463333488,-0.032855205237865,-0.001908290432766,-0.002244465285912,0.003744996851310,0.010214141570032,0.009540035389364,0.023207660764456,-0.006620454136282,-0.058429900556803,0.004699092824012,0.005128720309585,0.003650062484667,-0.004248478449881) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.012785045430064,-0.004417388699949,-0.000573633413296,-0.000166749174241,-0.002746738260612,0.001013125292957,0.003030849155039,0.003075887914747,0.002205380704254,-0.000052227926062,-0.000965828134213,-0.000790025806054,-0.000189330356079,-0.003714897204190,-0.003303842851892,-0.001526661450043) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.019349059090018,-0.023830870166421,-0.027021957561374,-0.024015605449677,0.004466768354177,0.001753818243742,-0.005456412676722,-0.007293599192053,-0.003405960276723,-0.001172547694296,0.001193257630803,0.001715782098472,0.008068368770182,0.007923977449536,0.005558993201703,0.003026781138033) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.000803301227279,-0.001784022315405,-0.003081046510488,-0.007253105752170,-0.001510341186076,-0.000644106825348,-0.000216409331188,0.001757170539349,0.000760461261962,-0.000017437647330,0.000155092231580,-0.000555112666916,-0.002755792345852,-0.001182385487482,0.000770629500039,0.003444247879088) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.013879734091461,0.006163836456835,0.003190628718585,0.001399370259605,-0.011296069249511,0.022755343466997,0.011005789041519,-0.003352421335876,0.003701347159222,-0.005589157808572,-0.009507764130831,-0.005281487014145,0.020570654422045,0.011422449722886,0.004924580454826,0.002376870252192) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.017564509063959,0.022897208109498,0.024900628253818,0.025132820010185,0.002803828567266,0.034513004124165,0.007104491349310,-0.039012040942907,-0.015203460119665,0.008181173354387,0.019067311659455,0.016260327771306,0.028273450210690,0.036652557551861,0.038674175739288,0.033549968153238) * MODEL9_texOff(vec2(0,0));
res += mat4(0.003701209556311,0.005938433576375,0.007600408978760,0.010039988905191,-0.002755077555776,-0.005647392012179,-0.007908536121249,-0.010746350511909,0.014753694646060,0.025934863835573,0.000845757720526,-0.028793621808290,-0.001776732620783,0.000106605199107,0.006152963265777,0.013336393050849) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.004671184811741,-0.001782575156540,0.000117120733194,0.000592420750763,0.014399483799934,0.014700971543789,-0.003030795371160,-0.002501505427063,0.003538353135809,-0.005422817077488,-0.006339596584439,-0.002563179936260,0.004185738973320,0.000024756649509,-0.001782598556019,-0.000773348496296) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.000982616562396,-0.002198035828769,-0.002514500403777,-0.004214909859002,0.021935140714049,0.015546010807157,-0.019188728183508,-0.019280292093754,-0.016517011448741,0.011019757017493,0.015909789130092,0.010875848121941,0.015214963816106,0.020209472626448,0.020230049267411,0.012080213055015) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001332015846856,-0.002196419984102,-0.002681279554963,-0.001456349040382,-0.005784459877759,-0.005041287280619,-0.004581044893712,0.004651776980609,0.014187606982887,0.015578296035528,-0.009191279299557,-0.032305914908648,-0.002304803347215,-0.003278827527538,-0.000479092297610,0.006903077010065) * MODEL9_texOff(vec2(1,1));
res += mat4(0.001414642203599,0.002855484141037,0.004825248848647,0.006383365020156,0.001681730733253,-0.000723986711819,-0.001160159590654,-0.000038541333197,0.005662095267326,0.002746773883700,0.000628225854598,-0.000332804949721,0.000837522500660,0.002398549811915,0.000601345265750,-0.001237848890014) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.002880058018491,0.004858997184783,0.001405448536389,-0.000179889495485,0.001236601616256,0.003298094263300,0.004479198250920,0.003900570329279,0.008253552019596,0.009943017736077,0.009821312502027,0.008477348834276,0.006707545835525,0.006154912989587,-0.004207724239677,-0.003391693346202) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.002364812651649,-0.003524739062414,-0.004417508374900,-0.002203833777457,-0.000687309075147,-0.000289881194476,0.000084205305029,0.000777750450652,0.000333969772328,0.000370381283574,0.001527203712612,0.004733759909868,-0.006317910272628,-0.005723059643060,-0.004543176852167,-0.001908923848532) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.025305489078164,0.012072242796421,0.011636815965176,-0.000809133634903,-0.013343200087547,-0.017236975952983,-0.013493577018380,-0.005110146943480,-0.006832085084170,0.004561929032207,0.008200523443520,0.006114492658526,0.007631180342287,0.012259780429304,0.004206026438624,0.003917431924492) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.028299700468779,0.018734658136964,-0.027085786685348,-0.056538820266724,-0.009670490399003,-0.004966927692294,-0.004458554554731,-0.007620809599757,-0.028215790167451,-0.037965413182974,-0.035828605294228,-0.023499641567469,0.066669292747974,0.025702878832817,-0.060239020735025,-0.048049725592136) * MODEL10_texOff(vec2(0,0));
res += mat4(0.000942363461945,0.003070442471653,0.002887252951041,0.007556472904980,-0.002000547247007,-0.003394294064492,-0.006285861134529,-0.009231001138687,0.006727970670909,0.007092845626175,0.000760296708904,-0.011024628765881,-0.002952507929876,-0.010544092394412,-0.015799853950739,0.017624041065574) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.014669422060251,-0.022542240098119,-0.008466009981930,-0.000890876108315,0.008031484670937,-0.003664430696517,-0.006424783263355,-0.002743738237768,0.008946812711656,0.011397621594369,0.009680517949164,0.004771257750690,0.005564290098846,0.000558827363420,0.001101582078263,0.000180798029760) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.016092738136649,0.015971032902598,0.047880381345749,0.027911756187677,0.016838552430272,0.026314048096538,0.028298823162913,0.022064702585340,0.005995704326779,0.002654476556927,0.002801866969094,0.005779852624983,-0.016055732965469,-0.017424745485187,0.001254942151718,0.011503754183650) * MODEL10_texOff(vec2(1,0));
res += mat4(0.005085345357656,0.004580155480653,-0.004094258882105,-0.017524305731058,-0.000947652617469,0.000512610771693,0.002737528877333,0.007340448908508,0.003818539669737,0.006874546408653,0.008764867670834,0.009005703963339,-0.001916091074236,0.000453166314401,0.009295294992626,0.004715639166534) * MODEL10_texOff(vec2(1,1));
res += mat4(0.001382600050420,0.002655644668266,0.006344957742840,0.005877544637769,0.003171631367877,0.008330725133419,0.008970583789051,0.005182775203139,-0.007072914857417,-0.002034730976447,-0.001548055792227,-0.000690060202032,-0.001428814954124,-0.000802290451247,-0.002226184355095,-0.003141371533275) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.004505073651671,-0.008495675399899,-0.002671215683222,0.002705878345296,-0.005361618008465,-0.002784881042317,-0.001043169526383,0.000073374263593,-0.003008536994457,0.004850738216192,0.008995544165373,-0.000896211946383,-0.002526576397941,-0.001586155034602,0.000617816869635,0.000818553497083) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.004979714285582,0.003141078865156,0.000993060413748,-0.001593869063072,0.000659921381157,-0.002217242494226,-0.004588234703988,-0.004471625667065,-0.000005576279818,0.000291258358629,0.000328460737364,-0.003124630078673,0.000160917625180,-0.000904087442905,-0.002066616434604,-0.002405458828434) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.022958051413298,-0.002693260321394,0.001809082343243,0.001931936130859,-0.022020207718015,-0.022269951179624,-0.010462802834809,-0.005881304852664,-0.016739381477237,-0.031969644129276,0.005822069477290,0.015695895999670,0.030124405398965,0.013434838503599,0.004861013032496,0.003383413190022) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.067843131721020,0.033984892070293,-0.028400655835867,-0.048182293772697,0.003559943288565,0.026102848351002,0.047702569514513,0.016528010368347,-0.014678057283163,-0.027081673964858,0.019672922790051,0.043406404554844,0.007620454300195,0.023883152753115,0.035487838089466,0.037136062979698) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.017704542726278,-0.021541520953178,-0.002725640544668,0.040060877799988,0.001817384851165,0.000978697906248,-0.000888803799171,-0.000884588225745,0.003210417227820,0.003098553745076,0.001177253550850,0.001455661142245,0.001635131426156,-0.000649906229228,-0.002878018422052,-0.000903989712242) * MODEL11_texOff(vec2(0,1));
res += mat4(0.006066811736673,0.000794991618022,0.000276719336398,0.000572828343138,-0.014194233343005,-0.004836060572416,0.003494129749015,0.005040996242315,-0.044570252299309,0.002398531883955,0.026460025459528,0.010541263967752,0.030871871858835,0.015874208882451,0.001704059890471,-0.004161844961345) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.014494074508548,0.007618879899383,0.019710974767804,0.016130130738020,0.010374838486314,-0.014662743546069,-0.040390480309725,-0.033655047416687,0.003896370064467,0.023161521181464,0.015534580685198,-0.028693577274680,0.004063997417688,0.019299492239952,0.036508377641439,0.042188193649054) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.000913439202122,-0.002140183933079,-0.011135917156935,-0.020094577223063,0.001590618048795,0.003976156469434,0.005179697647691,0.007776548620313,-0.004421377554536,-0.004854467697442,-0.007815349847078,-0.007040922995657,0.002927294699475,0.000516149215400,-0.002544114133343,-0.001843784586526) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001690886216238,0.000045707773097,0.000800911628176,-0.000185997443623,0.003251929534599,0.003527961205691,0.004298904910684,0.005451769102365,-0.000044697317207,-0.002069481881335,-0.002653745701537,-0.003079253248870,0.003845799481496,0.002501935698092,-0.001183773390949,-0.002719448180869) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.001319482107647,0.000672163208947,0.000292535434710,-0.000590980809648,0.003792938543484,0.000569947413169,-0.000836249382701,-0.000732918328140,0.006699395366013,0.008561905473471,0.008454409427941,0.005523408763111,-0.003906131954864,-0.003625538432971,0.000706413935404,0.002881549997255) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.001165961497463,-0.002122013829648,0.000250701297773,0.002080068923533,0.004267022944987,0.005589477717876,0.005377391353250,0.006053000222892,-0.001498895813711,-0.001203644671477,-0.000061443592131,0.003202598076314,-0.000045983655582,0.000252570724115,0.001111072488129,0.000230364617892) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.003380571724847,0.004118268378079,0.005047939717770,0.002150811254978,-0.030608819797635,-0.010056548751891,-0.002048673573881,0.000143180863233,0.002146264538169,0.002477403264493,0.002034815726802,0.000379543867894,0.052387401461601,-0.009976799599826,-0.028648519888520,-0.006531056948006) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.026349034160376,-0.004164346028119,-0.016996845602989,-0.015169571153820,-0.041409343481064,-0.058514095842838,-0.061514277011156,-0.053003206849098,0.002877832157537,-0.000798136345111,-0.001511027105153,0.000227417127462,0.002166634891182,-0.028151920065284,-0.032825808972120,0.034799635410309) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.002981493482366,-0.030414180830121,-0.018698571249843,0.028925037011504,-0.000137662500492,-0.001349461614154,-0.004740568809211,-0.017622079700232,0.001883796183392,0.003861715318635,0.003489716909826,0.005045502912253,0.006160516757518,0.009046680293977,0.003344434313476,-0.000230394667597) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.004284071736038,0.003375336062163,0.007980807684362,0.004634594079107,-0.021979607641697,-0.003081323811784,0.005677201319486,0.005816145334393,-0.001434209407307,0.002511859638616,0.002636570716277,0.000949827895965,0.010346787050366,-0.007704243995249,-0.008656555786729,-0.002062664134428) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.021927472203970,-0.001407347270288,-0.011363905854523,-0.011009762063622,-0.027870114892721,-0.048002123832703,-0.056269124150276,-0.046444866806269,-0.019124327227473,-0.021081006154418,-0.016773117706180,-0.008969976566732,-0.007195396814495,-0.015204720199108,-0.001819309429266,0.015912706032395) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.003959414083511,-0.019695527851582,-0.008925416506827,0.022245453670621,0.000292291893857,0.004078380763531,0.003535358468071,-0.008117926307023,0.001088946009986,0.000002321262400,-0.003715288359672,-0.010111364535987,0.002787874080241,0.002205726923421,0.004355582874268,0.004404384177178) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND SUBCONV4
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_Sharp_4x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(4));
mat4 res = mat4(SUBCONV1_tex(base),SUBCONV2_tex(base),SUBCONV3_tex(base),SUBCONV4_tex(base));
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
